From e9588caa0382342e1bf658ff3c8ac6360fed4769 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 4 Mar 2024 16:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B7=AF=E7=94=B1=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index f64aa177..4a813e85 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -9,7 +9,7 @@ const routes: Array = [ path: "/", // redirect重定向 redirect: "/login" - // redirect: "/Upgrade" + // redirect: "/upgrade" }, { path: '/login', @@ -68,6 +68,8 @@ const router = createRouter({ // history: createWebHashHistory(), routes }) +console.log(123123123); + router.beforeEach((to, from, next) => { // 系统维护 // const toName = to.name === 'upgrade'; @@ -90,11 +92,8 @@ router.beforeEach((to, from, next) => { return false } }); - console.log(routeExists); if (routeExists) { - console.log(isMurmur, murmurStr, token); - if (isMurmur && murmurStr && token) { const toName = to.name === 'login'; if (toName) { @@ -105,7 +104,6 @@ router.beforeEach((to, from, next) => { } else { // 如果页面存在,正常跳转 const toName = to.name === 'upgrade'; - console.log(toName); if (toName) { next({ name: 'login' });