diff --git a/src/router/index.js b/src/router/index.js index e16d282..80482b0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,9 @@ import AdminDashboard from '../views/admin/AdminDashboard.vue' import StaffDashboard from '../views/staff/StaffDashboard.vue' import CustomerDashboard from '../views/customer/CustomerDashboard.vue' import CustomerHome from '../views/customer/CustomerHome.vue' +import ServiceAppointment from '@/views/customer/ServiceAppointment.vue' +import MySchedule from '@/views/customer/MySchedule.vue' +import UserProfile from '@/views/customer/UserProfile.vue' const routes = [ { @@ -33,24 +36,40 @@ const routes = [ path: '/admin', name: 'AdminDashboard', component: AdminDashboard, - meta: { requiresAuth: true, role: 'admin' } + meta: { requiresAuth: true, role: 'admin', title: '管理员控制台' } }, { path: '/staff', name: 'StaffDashboard', component: StaffDashboard, - meta: { requiresAuth: true, role: 'staff' } + meta: { requiresAuth: true, role: 'staff', title: '员工控制台' } }, { path: '/customer', name: 'CustomerDashboard', component: CustomerDashboard, - meta: { requiresAuth: true, role: 'customer' }, + meta: { requiresAuth: true, role: 'customer', title: '养老系统' }, children: [ { - path: '', + path: '/customer/home', name: 'CustomerHome', - component: CustomerHome + component: CustomerHome, + meta: { title: '养老系统' } + }, + { + path: '/customer/services', + name: 'ServiceAppointment', + component: ServiceAppointment + }, + { + path: '/customer/schedule', + name: 'MySchedule', + component: MySchedule + }, + { + path: '/customer/profile', + name: 'UserProfile', + component: UserProfile } ] } diff --git a/src/views/customer/CustomerDashboard.vue b/src/views/customer/CustomerDashboard.vue index 5cb2dfa..34679e6 100644 --- a/src/views/customer/CustomerDashboard.vue +++ b/src/views/customer/CustomerDashboard.vue @@ -3,7 +3,7 @@

顾客服务中心