diff --git a/web/src/pages/Setting/index.js b/web/src/pages/Setting/index.js index 5572e540..f50586fe 100644 --- a/web/src/pages/Setting/index.js +++ b/web/src/pages/Setting/index.js @@ -2,6 +2,15 @@ import React, { useEffect, useState } from 'react'; import { Layout, TabPane, Tabs } from '@douyinfe/semi-ui'; import { useNavigate, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; +import { + Settings, + Calculator, + Gauge, + Shapes, + Cog, + MoreHorizontal, + LayoutDashboard +} from 'lucide-react'; import SystemSetting from '../../components/settings/SystemSetting.js'; import { isRoot } from '../../helpers'; @@ -21,40 +30,75 @@ const Setting = () => { if (isRoot()) { panes.push({ - tab: t('运营设置'), + tab: ( + + + {t('运营设置')} + + ), content: , itemKey: 'operation', }); panes.push({ - tab: t('倍率设置'), + tab: ( + + + {t('倍率设置')} + + ), content: , itemKey: 'ratio', }); panes.push({ - tab: t('速率限制设置'), + tab: ( + + + {t('速率限制设置')} + + ), content: , itemKey: 'ratelimit', }); panes.push({ - tab: t('模型相关设置'), + tab: ( + + + {t('模型相关设置')} + + ), content: , itemKey: 'models', }); panes.push({ - tab: t('系统设置'), + tab: ( + + + {t('系统设置')} + + ), content: , itemKey: 'system', }); panes.push({ - tab: t('其他设置'), - content: , - itemKey: 'other', - }); - panes.push({ - tab: t('仪表盘设置'), + tab: ( + + + {t('仪表盘设置')} + + ), content: , itemKey: 'dashboard', }); + panes.push({ + tab: ( + + + {t('其他设置')} + + ), + content: , + itemKey: 'other', + }); } const onChangeTab = (key) => { setTabActiveKey(key); @@ -74,7 +118,7 @@ const Setting = () => { onChangeTab(key)} >