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'){