1
0

refactor: 统计页面改名为"总览"并提升至侧边栏首位

将侧边栏"用量统计"菜单项改名为"总览",移至第一位,
默认路由重定向从 /providers 改为 /stats
This commit is contained in:
2026-05-07 15:05:45 +08:00
parent e4c96da8a9
commit fb9f6d1d00
7 changed files with 26 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ export function AppLayout() {
const getPageTitle = () => {
if (location.pathname === '/providers') return '供应商管理'
if (location.pathname === '/stats') return '用量统计'
if (location.pathname === '/stats') return '总览'
if (location.pathname === '/settings') return '设置'
if (location.pathname === '/about') return '关于'
return APP_NAME
@@ -73,12 +73,12 @@ export function AppLayout() {
}
style={{ height: '100%' }}
>
<MenuItem value='/stats' icon={<ChartLineIcon />}>
</MenuItem>
<MenuItem value='/providers' icon={<ServerIcon />}>
</MenuItem>
<MenuItem value='/stats' icon={<ChartLineIcon />}>
</MenuItem>
<MenuItem value='/settings' icon={<SettingIcon />}>
</MenuItem>