From 89c9deeeb23e2528c73228722a506643c5654b64 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Fri, 4 Sep 2026 15:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=95=9BSalon=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AE=A1=E7=90=86=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/admin-navigation.ts | 3 +- JC-Salon-Frontend/src/router/index.ts | 2 +- .../src/views/admin/HomeView.vue | 10 +----- .../src/views/admin/ShopsView.vue | 21 ++++++------ .../src/views/admin/UsersView.vue | 34 +++++++------------ 5 files changed, 25 insertions(+), 45 deletions(-) diff --git a/JC-Salon-Frontend/src/config/admin-navigation.ts b/JC-Salon-Frontend/src/config/admin-navigation.ts index d2fe3531..fe8bbd10 100644 --- a/JC-Salon-Frontend/src/config/admin-navigation.ts +++ b/JC-Salon-Frontend/src/config/admin-navigation.ts @@ -24,8 +24,7 @@ export const ADMIN_DASHBOARD_PATH = '/admin/dashboard' export const adminNavigationItems: AdminNavigationItem[] = [ { path: ADMIN_HOME_PATH, iconKey: 'home', label: '首页', permissionCode: '' }, - { path: ADMIN_DASHBOARD_PATH, iconKey: 'dashboard', label: '仪表盘', permissionCode: 'dashboard:view' }, - { path: '/admin/users', iconKey: 'user', label: '用户管理', permissionCode: 'user:view' }, + { path: '/admin/users', iconKey: 'user', label: '店长账号', permissionCode: 'user:view' }, { path: '/admin/shops', iconKey: 'home', label: '店铺管理', permissionCode: 'shop:view' }, { path: '/admin/profile', iconKey: 'user', label: '个人设置', permissionCode: '' } ] diff --git a/JC-Salon-Frontend/src/router/index.ts b/JC-Salon-Frontend/src/router/index.ts index a8822bf5..7726cda6 100644 --- a/JC-Salon-Frontend/src/router/index.ts +++ b/JC-Salon-Frontend/src/router/index.ts @@ -8,7 +8,7 @@ import { } from '@/utils/admin-auth-bootstrap' const pageNames = [ - ['', 'HomeView', 'admin', undefined], ['dashboard', 'DashboardView', 'admin-dashboard', 'dashboard:view'], + ['', 'HomeView', 'admin', undefined], ['users', 'UsersView', 'admin-users', 'user:view'], ['shops', 'ShopsView', 'admin-shops', 'shop:view'], ['profile', 'ProfileView', 'admin-profile', undefined] ] as const diff --git a/JC-Salon-Frontend/src/views/admin/HomeView.vue b/JC-Salon-Frontend/src/views/admin/HomeView.vue index 8f39c049..4d562f65 100644 --- a/JC-Salon-Frontend/src/views/admin/HomeView.vue +++ b/JC-Salon-Frontend/src/views/admin/HomeView.vue @@ -154,7 +154,6 @@ import { computed, onBeforeUnmount, onMounted, ref } from 'vue' import { useRouter } from 'vue-router' import { - DashboardOutlined, HomeOutlined, SafetyCertificateOutlined, UserOutlined @@ -231,16 +230,9 @@ const quickActions = computed(() => { return [] } const actions = [ - { - key: 'dashboard', - title: '仪表盘', - path: '/admin/dashboard', - icon: DashboardOutlined, - permissionCode: 'dashboard:view' - }, { key: 'users', - title: '用户管理', + title: '店长账号', path: '/admin/users', icon: UserOutlined, permissionCode: 'user:view' diff --git a/JC-Salon-Frontend/src/views/admin/ShopsView.vue b/JC-Salon-Frontend/src/views/admin/ShopsView.vue index d82f45d7..a00154f3 100644 --- a/JC-Salon-Frontend/src/views/admin/ShopsView.vue +++ b/JC-Salon-Frontend/src/views/admin/ShopsView.vue @@ -103,7 +103,7 @@ @change="(checked: any) => handleStatusChange(record, checked === true)" /> -