mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 18:48:55 +00:00
perf: auto load icons (#688)
* perf: icon * perf: icon * doc * perf: simple edit ui * doc * doc * doc * doc
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { Box, Flex } from '@chakra-ui/react';
|
||||
import { ChevronRightIcon } from '@chakra-ui/icons';
|
||||
import MyIcon from '@/components/Icon';
|
||||
import MyIcon from '@fastgpt/web/components/common/Icon';
|
||||
import { useRouter } from 'next/router';
|
||||
import { feConfigs } from '@/web/common/system/staticData';
|
||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||
@@ -13,19 +13,10 @@ const Tools = () => {
|
||||
const router = useRouter();
|
||||
const list = [
|
||||
{
|
||||
icon: 'dbLight',
|
||||
icon: 'core/dataset/datasetLight',
|
||||
label: '我的知识库',
|
||||
link: '/dataset/list'
|
||||
},
|
||||
...(feConfigs?.show_appStore
|
||||
? [
|
||||
{
|
||||
icon: 'appStoreLight',
|
||||
label: 'AI应用市场',
|
||||
link: '/appStore'
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
icon: 'common/navbar/pluginLight',
|
||||
label: '自定义模块',
|
||||
@@ -34,7 +25,7 @@ const Tools = () => {
|
||||
...(feConfigs?.show_git
|
||||
? [
|
||||
{
|
||||
icon: 'git',
|
||||
icon: 'common/gitLight',
|
||||
label: 'GitHub 地址',
|
||||
link: 'https://github.com/labring/FastGPT'
|
||||
}
|
||||
|
Reference in New Issue
Block a user