diff --git a/src/components/Layout/Sidebar.tsx b/src/components/Layout/Sidebar.tsx index a4ce050..0d8bd0b 100644 --- a/src/components/Layout/Sidebar.tsx +++ b/src/components/Layout/Sidebar.tsx @@ -2,13 +2,14 @@ import { Box, List, ListItemButton, ListItemText, Typography, Collapse, ListItem import { Link, useLocation, useNavigate } from 'react-router-dom'; import { LibraryBooksOutlined as KnowledgeBasesIcon, - AccountTreeOutlined as AgentIcon, + SmartToyOutlined as AgentsIcon, + AutoAwesomeOutlined as ModelsIcon, + HubOutlined as McpIcon, SettingsOutlined as SettingIcon, Person as PersonIcon, Group as GroupIcon, ExpandMore as ExpandMoreIcon, ExpandLess as ExpandLessIcon, - } from '@mui/icons-material'; import { useTranslation } from 'react-i18next'; import { useMemo, useState } from 'react'; @@ -32,10 +33,11 @@ const Sidebar = () => { const { t } = useTranslation(); const navItems: MenuItem[] = useMemo(() => ([ + // 顺序:模型 -> 知识库 -> MCP -> 智能体 -> 设置 + { text: t('header.models'), path: '/models', icon: ModelsIcon }, { text: t('header.knowledgeBase'), path: '/knowledge', icon: KnowledgeBasesIcon }, - { text: t('header.agents'), path: '/agents', icon: AgentIcon }, - { text: t('header.models'), path: '/models', icon: AgentIcon }, - { text: t('header.mcp'), path: '/mcp', icon: AgentIcon }, + { text: t('header.mcp'), path: '/mcp', icon: McpIcon }, + { text: t('header.agents'), path: '/agents', icon: AgentsIcon }, { text: t('header.setting'), path: '/setting',