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