Files
lanecarford_front/src/router/index.ts

124 lines
3.2 KiB
TypeScript
Raw Normal View History

2025-10-09 09:29:36 +08:00
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory('/'),
// history: createWebHistory(import.meta.env.VITE_APP_URL),
2025-10-09 09:29:36 +08:00
routes: [
{
path: '/',
redirect: '/welcome'
},
{
path: '/login',
2025-10-13 10:13:54 +08:00
name: 'LoginPage',
component: () => import('@/views/login/LoginPage.vue')
},
{
path: '/signup',
2025-10-13 10:13:54 +08:00
name: 'SignupPage',
component: () => import('@/views/login/SignupPage.vue')
},
2025-10-13 10:13:54 +08:00
{
path: '/welcome',
name: 'WelcomePage',
component: () => import('@/views/login/WelcomePage.vue')
},
{
path: '/stylist',
2025-10-13 10:13:54 +08:00
name: 'StylistPage',
2025-10-14 16:42:09 +08:00
redirect:'/stylist/index',
component: () => import('@/views/stylist/container.vue'),
2025-10-13 10:13:54 +08:00
children: [
{
2025-10-14 16:42:09 +08:00
path: 'index',
name: 'index',
component: () => import('@/views/stylist/index.vue')
},
{
path: 'sex',
2025-10-13 10:26:33 +08:00
name: 'sex',
2025-10-13 10:13:54 +08:00
component: () => import('@/views/stylist/sex.vue')
},
{
2025-10-14 16:42:09 +08:00
path: 'dressfor',
2025-10-13 10:26:33 +08:00
name: 'dressfor',
2025-10-13 10:13:54 +08:00
component: () => import('@/views/stylist/dressfor.vue')
},
{
2025-10-14 16:42:09 +08:00
path: 'customer',
2025-10-13 10:26:33 +08:00
name: 'customer',
2025-10-13 10:13:54 +08:00
component: () => import('@/views/stylist/customer.vue')
}
]
},
2025-10-14 16:42:09 +08:00
{
path: '/asistant',
name: 'asistant',
component: () => import('../views/asistant/index.vue')
},
{
path: '/workshop',
name: 'Workshop',
component: () => import('../views/Workshop/index.vue'),
children: [
2025-10-16 14:49:01 +08:00
{
path: '/workshop',
redirect: "/workshop/selectStyle",
},
{
path: '/workshop/selectStyle',
name: 'SelectStyle',
component: () => import('../views/Workshop/selectStyle.vue')
},
{
path: '/workshop/selectModel',
name: 'SelectModel',
component: () => import('../views/Workshop/selectModel.vue')
},
{
path: '/workshop/selectModelContinue',
name: 'SelectModelContinue',
component: () => import('../views/Workshop/selectModelContinue.vue')
},
2025-10-13 10:13:54 +08:00
{
2025-10-16 13:57:00 +08:00
// 上传照片1
2025-10-13 10:13:54 +08:00
path: '/workshop/uploadFace',
name: 'uploadFace',
2025-10-16 13:57:00 +08:00
component: () => import('../views/Workshop/uploadFace1.vue')
},
{
// 上传照片2
path: '/workshop/uploadFace2',
name: 'uploadFace2',
component: () => import('../views/Workshop/uploadFace2.vue')
2025-10-13 10:13:54 +08:00
},
{
// 自定义创作
path: '/workshop/customize',
name: 'customize',
2025-10-16 11:01:54 +08:00
component: () => import('../views/Workshop/customize.vue'),
2025-10-13 10:13:54 +08:00
},
2025-10-16 11:01:54 +08:00
{
// library
path: '/workshop/library',
name: 'library',
component: () => import('../views/Workshop/library.vue'),
},
{
// creation
path: '/workshop/creation',
name: 'creation',
component: () => import('../views/Workshop/creation.vue'),
},
2025-10-13 10:13:54 +08:00
{
// 完成创建
path: '/workshop/end',
name: 'end',
2025-10-16 11:01:54 +08:00
component: () => import('../views/Workshop/end.vue')
2025-10-13 10:13:54 +08:00
}
]
}
2025-10-09 09:29:36 +08:00
]
})
export default router