From c2e1462a280c0582752db6f382a689db88fe9ce6 Mon Sep 17 00:00:00 2001 From: carry <2641257231@qq.com> Date: Sat, 15 Feb 2025 17:28:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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' } ] })