修改bug

This commit is contained in:
zhangyichen
2022-04-14 10:19:44 +08:00
parent f2077307d9
commit 44ea95ce75
+4
View File
@@ -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'){