feat: 欢迎&登录&注册&stylist页面

This commit is contained in:
zhangyh
2025-10-10 11:00:08 +08:00
parent 4843c9bfda
commit 312b25d287
17 changed files with 1223 additions and 116 deletions

View File

@@ -1,32 +1,43 @@
import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
history: createWebHistory('/'),
// history: createWebHistory(import.meta.env.VITE_APP_URL),
// history: createWebHistory(import.meta.env.VITE_APP_URL),
routes: [
{
path: '/',
redirect: "/workshop",
},
{
path: '/workshop',
name: 'Workshop',
component: () => import('../views/Workshop/index.vue'),
children: [
// {
// path: '',
// name: 'activitiesWorkshop',
// redirect: "/activities/workshop",
// },
path: '/',
redirect: '/workshop'
},
{
path: '/workshop',
name: 'Workshop',
component: () => import('../views/Workshop/index.vue'),
children: [
// {
// path: '',
// name: 'activitiesWorkshop',
// redirect: "/activities/workshop",
// },
{
path: '/workshop/selectStyle',
name: 'SelectStyle',
component: () => import('../views/Workshop/selectStyle.vue'),
},
]
},
{
path: '/workshop/selectStyle',
name: 'SelectStyle',
component: () => import('../views/Workshop/selectStyle.vue')
}
]
},
{
path: '/login',
component: () => import('@/views/login/LoginPage.vue')
},
{
path: '/signup',
component: () => import('@/views/login/SignupPage.vue')
},
{ path: '/welcome', component: () => import('@/views/login/WelcomePage.vue') },
{
path:'/stylist',
component: () => import('@/views/stylist/index.vue')
}
]
})