From 03e3498de53ac76cd29fc48a9d41bd346f531e94 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Thu, 5 Dec 2024 17:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index ded63fd..f73ce0b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -69,7 +69,7 @@ const routes = [ const router = new Router({ mode: 'history', routes, - base: '', + base: '/screen', }) router.beforeEach(async (to, from, next) => { @@ -78,7 +78,7 @@ router.beforeEach(async (to, from, next) => { } const token = localStorage.getItem('token') if (!token) { - next('/login/index') // 跳转到登录页 + next('/screen/login/index') // 跳转到登录页 } else { next() // 放行 }