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, + }, ] } ]