refactor: 统计页面改名为"总览"并提升至侧边栏首位
将侧边栏"用量统计"菜单项改名为"总览",移至第一位, 默认路由重定向从 /providers 改为 /stats
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user