调整customer路由位置,吧登陆后的路由放在workshop路由下
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user