From d99c91533c8d67745590598c4397b93bce125f65 Mon Sep 17 00:00:00 2001 From: Frudrax Cheng Date: Sat, 6 Jun 2026 14:04:00 +0800 Subject: [PATCH] chore: rename dashboard --- README.md | 2 +- src/components/AdminLayout.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c5363fc..ee9cc40 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ VITE_API_BASE_URL=/api ### 管理后台 -- 控制台(工单统计) +- 企安工单中台(工单统计) - 权限管理 - 创建员工时录入姓名、电话、工号、岗位、角色 - 角色仅可选择:软件工程师、硬件工程师、商务经理、项目经理 diff --git a/src/components/AdminLayout.tsx b/src/components/AdminLayout.tsx index ef2e6a5..69f7a4a 100644 --- a/src/components/AdminLayout.tsx +++ b/src/components/AdminLayout.tsx @@ -40,7 +40,7 @@ function AdminLayout() { { key: 'dashboard', icon: , - label: '控制台', + label: '企安工单中台', onClick: () => navigate('/admin/dashboard'), }, { @@ -135,13 +135,13 @@ function AdminLayout() { const getTitle = () => { const path = location.pathname; - if (path.includes('/dashboard')) return '控制台'; + if (path.includes('/dashboard')) return '企安工单中台'; if (path.includes('/employee-serials')) return '权限管理'; if (path.includes('/product-traces')) return '产品溯源'; if (path.includes('/project-orders')) return '项目工单'; if (path.includes('/aftersales')) return '售后工单'; if (path.includes('/profile')) return '用户资料'; - return '控制台'; + return '企安工单中台'; }; return (