chore: rename dashboard
This commit is contained in:
@@ -101,7 +101,7 @@ VITE_API_BASE_URL=/api
|
|||||||
|
|
||||||
### 管理后台
|
### 管理后台
|
||||||
|
|
||||||
- 控制台(工单统计)
|
- 企安工单中台(工单统计)
|
||||||
- 权限管理
|
- 权限管理
|
||||||
- 创建员工时录入姓名、电话、工号、岗位、角色
|
- 创建员工时录入姓名、电话、工号、岗位、角色
|
||||||
- 角色仅可选择:软件工程师、硬件工程师、商务经理、项目经理
|
- 角色仅可选择:软件工程师、硬件工程师、商务经理、项目经理
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ function AdminLayout() {
|
|||||||
{
|
{
|
||||||
key: 'dashboard',
|
key: 'dashboard',
|
||||||
icon: <DashboardOutlined />,
|
icon: <DashboardOutlined />,
|
||||||
label: '控制台',
|
label: '企安工单中台',
|
||||||
onClick: () => navigate('/admin/dashboard'),
|
onClick: () => navigate('/admin/dashboard'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -135,13 +135,13 @@ function AdminLayout() {
|
|||||||
|
|
||||||
const getTitle = () => {
|
const getTitle = () => {
|
||||||
const path = location.pathname;
|
const path = location.pathname;
|
||||||
if (path.includes('/dashboard')) return '控制台';
|
if (path.includes('/dashboard')) return '企安工单中台';
|
||||||
if (path.includes('/employee-serials')) return '权限管理';
|
if (path.includes('/employee-serials')) return '权限管理';
|
||||||
if (path.includes('/product-traces')) return '产品溯源';
|
if (path.includes('/product-traces')) return '产品溯源';
|
||||||
if (path.includes('/project-orders')) return '项目工单';
|
if (path.includes('/project-orders')) return '项目工单';
|
||||||
if (path.includes('/aftersales')) return '售后工单';
|
if (path.includes('/aftersales')) return '售后工单';
|
||||||
if (path.includes('/profile')) return '用户资料';
|
if (path.includes('/profile')) return '用户资料';
|
||||||
return '控制台';
|
return '企安工单中台';
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user