This commit is contained in:
李志鹏
2026-05-19 17:03:28 +08:00
parent cfcb1bef21
commit 9f079107f7

View File

@@ -9,6 +9,7 @@ export const routes: RouteRecordRaw[] = [
children: [ children: [
{ {
path: '', path: '',
name: 'home',
component: HomeView, component: HomeView,
}, },
{ {
@@ -51,30 +52,41 @@ export const routes: RouteRecordRaw[] = [
children: [ children: [
{ {
path: '', path: '',
name: 'welcome',
component: () => import('./pages/my-account/welcome.vue'), component: () => import('./pages/my-account/welcome.vue'),
}, },
{ {
path: 'orders', path: 'orders',
name: 'orders',
component: () => import('./pages/my-account/orders.vue'), component: () => import('./pages/my-account/orders.vue'),
}, },
{ {
path: 'subscriptions', path: 'subscriptions',
name: 'subscriptions',
component: () => import('./pages/my-account/subscriptions.vue'), component: () => import('./pages/my-account/subscriptions.vue'),
}, },
{ {
path: 'address', path: 'address',
name: 'address',
component: () => import('./pages/my-account/address.vue'), component: () => import('./pages/my-account/address.vue'),
}, },
{ {
path: 'payment-methods', path: 'payment-methods',
name: 'payment-methods',
component: () => import('./pages/my-account/payment-methods.vue'), component: () => import('./pages/my-account/payment-methods.vue'),
}, },
{ {
path: ':pathMatch(.*)*', path: ':pathMatch(.*)*',
name: 'not-found-welcome',
component: () => import('./pages/my-account/welcome.vue'), component: () => import('./pages/my-account/welcome.vue'),
}, },
] ]
}, },
{
path: ':pathMatch(.*)*',
name: 'not-found-home',
component: HomeView,
},
] ]
} }
] ]