perf: image and auth

This commit is contained in:
archer
2023-04-28 14:01:27 +08:00
parent 75073a64fb
commit ca8e940c9b
8 changed files with 24 additions and 22 deletions

View File

@@ -7,7 +7,8 @@ import { useQuery } from '@tanstack/react-query';
const unAuthPage: { [key: string]: boolean } = {
'/': true,
'/login': true
'/login': true,
'/model/share': true
};
const Auth = ({ children }: { children: JSX.Element }) => {

View File

@@ -20,18 +20,19 @@ const navbarList = [
link: '/',
activeLink: ['/']
},
{
label: '模型',
icon: 'model',
link: '/model/list',
activeLink: ['/model/list', '/model/detail']
},
{
label: '共享',
icon: 'shareMarket',
link: '/model/share',
activeLink: ['/model/share']
},
{
label: '模型',
icon: 'model',
link: '/model/list',
activeLink: ['/model/list', '/model/detail']
},
{
label: '账号',
icon: 'user',