调整customer路由位置,吧登陆后的路由放在workshop路由下
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped

This commit is contained in:
X1627315083
2025-12-19 13:40:15 +08:00
parent c157c0a14a
commit 67702b36b2
7 changed files with 43 additions and 47 deletions

View File

@@ -62,42 +62,17 @@ const router = createRouter({
name: 'WelcomePage',
component: () => import('@/views/login/WelcomePage.vue')
},
{
path: '/customer',
name: 'customer',
component: () => import('@/views/login/customer.vue'),
},
{
path: '/homeNav',
name: 'HomeNav',
component: () => import('@/views/Workshop/home.vue')
},
{
path: '/stylist',
name: 'StylistPage',
redirect: '/stylist/index',
component: () => import('@/views/stylist/container.vue'),
children: [
{
path: 'index',
name: 'index',
component: () => import('@/views/stylist/index.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
{
path: 'sex',
name: 'sex',
component: () => import('@/views/stylist/sex.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
{
path: 'dressfor',
name: 'dressfor',
component: () => import('@/views/stylist/dressfor.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
{
path: 'customer',
name: 'customer',
component: () => import('@/views/stylist/customer.vue'),
}
]
},
{
path: '/asistant',
name: 'asistant',
@@ -109,10 +84,37 @@ const router = createRouter({
name: 'Workshop',
component: () => import('../views/Workshop/index.vue'),
children: [
{
path: '/workshop',
redirect: '/workshop/selectStyle'
},
// {
// path: '/workshop',
// redirect: '/workshop/selectStyle'
// },
{
path: '/workshop/stylist',
name: 'StylistPage',
redirect: '/workshop/stylist/index',
component: () => import('@/views/stylist/container.vue'),
children: [
{
path: 'index',
name: 'index',
component: () => import('@/views/stylist/index.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
{
path: 'sex',
name: 'sex',
component: () => import('@/views/stylist/sex.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
{
path: 'dressfor',
name: 'dressfor',
component: () => import('@/views/stylist/dressfor.vue'),
meta: { verify: ()=> VerifyIDs(2) }
},
]
},
{
path: '/workshop/selectStyle',
name: 'SelectStyle',