feat(ui): traffic nav item in Sidebar

This commit is contained in:
風雪 committed 2026-08-16 22:01:28 +08:00
1 parent d02df28731
commit d540758af5
1 file changed
+2 -1
+2 -1
View File
@@ -2,7 +2,7 @@ import React from 'react';
import { Layout, Menu } from 'antd';
import {
DashboardOutlined, NodeIndexOutlined, UserOutlined, SettingOutlined,
CodeOutlined, FileTextOutlined, ApiOutlined, LogoutOutlined,
CodeOutlined, FileTextOutlined, ApiOutlined, LogoutOutlined, LineChartOutlined,
} from '@ant-design/icons';
import { useNavigate, useLocation } from 'react-router-dom';
import { useAuthStore } from '../stores/authStore';
@@ -20,6 +20,7 @@ export function useSidebarMenuItems(onNavigate?: () => void) {
{ key: '/', icon: <DashboardOutlined />, label: t('nav.dashboard') },
{ key: '/listeners', icon: <NodeIndexOutlined />, label: t('nav.listeners') },
{ key: '/users', icon: <UserOutlined />, label: t('nav.users') },
{ key: '/traffic', icon: <LineChartOutlined />, label: t('nav.traffic') },
{ key: '/core', icon: <ApiOutlined />, label: t('nav.core') },
{ key: '/logs', icon: <FileTextOutlined />, label: t('nav.logs') },
{ key: '/config', icon: <CodeOutlined />, label: t('nav.config') },