From 44ea95ce7502de3c9235e2298f8acae1a34802f7 Mon Sep 17 00:00:00 2001 From: zhangyichen <5277314+zacty@user.noreply.gitee.com> Date: Thu, 14 Apr 2022 10:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.js b/src/main.js index b11025743..9c1f2aa36 100644 --- a/src/main.js +++ b/src/main.js @@ -65,6 +65,9 @@ import isMobile from "./store/isMobile"; // 路由拦截 router.beforeEach(function (to, from, next) { let toName = to.name + if (toName === 'CheckPage') { + next() + } let token = store.state.token let path = to.path; let requireAuth = to.meta.requireAuth; @@ -112,6 +115,7 @@ router.beforeEach(function (to, from, next) { localStorage.setItem('routerParam', param) } // 返回值为登录状态 + // 单点登录 /** 判断是不是在手机端操作 */ if (isMobile()) { if(toName === 'processCenter'){