diff --git a/src/router/index.ts b/src/router/index.ts index 6c83b98..8acb90f 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -19,15 +19,20 @@ const router = createRouter({ component: () => import('../pages/UserCenter/index.vue'), }, { - path: '/terms-of-service', + path: '/terms', name: 'terms-of-service', component: () => import('../pages/TermsOfService/index.vue'), }, { - path: '/privacy-policy', + path: '/privacy', name: 'privacy-policy', component: () => import('../pages/PrivacyPolicy/index.vue'), }, + { + path: '/:pathMatch(.*)*', + name: 'not-found', + redirect: '/', + }, ], })