perf: config fe

This commit is contained in:
archer
2023-07-19 10:59:49 +08:00
parent 7a76f54148
commit 47af8d1c3d
18 changed files with 340 additions and 230 deletions

View File

@@ -3,6 +3,7 @@ import { Box, Flex } from '@chakra-ui/react';
import { ChevronRightIcon } from '@chakra-ui/icons';
import MyIcon from '@/components/Icon';
import { useRouter } from 'next/router';
import { feConfigs } from '@/store/static';
const list = [
{
@@ -10,16 +11,24 @@ const list = [
label: '我的知识库',
link: '/kb/list'
},
{
icon: 'appStoreLight',
label: 'AI应用市场',
link: '/appStore'
},
{
icon: 'git',
label: 'Git项目地址',
link: 'https://github.com/labring/FastGPT'
}
...(feConfigs.show_appStore
? [
{
icon: 'appStoreLight',
label: 'AI应用市场',
link: '/appStore'
}
]
: []),
...(feConfigs.show_git
? [
{
icon: 'git',
label: 'Git项目地址',
link: 'https://github.com/labring/FastGPT'
}
]
: [])
];
const Tools = () => {