diff --git a/src/router/index.ts b/src/router/index.ts index b81499a..f8bb766 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -15,13 +15,10 @@ const router = createRouter({ component: () => import('@/views/ManagePage.vue'), meta: { requiresAuth: true } }, - { - path: '/', - redirect: '/manage' - }, + { path: '/:pathMatch(.*)*', - redirect: '/login' + redirect: '/manage' } ] })