From 9f079107f79b34e633520e8dfaff085545efc360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Tue, 19 May 2026 17:03:28 +0800 Subject: [PATCH] router --- src/routes.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/routes.ts b/src/routes.ts index c79e82a..690625a 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -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, + }, ] } ]