feat: There is no way the,

This commit is contained in:
super_liu
2022-04-25 11:25:05 +08:00
parent f93bc30d5a
commit 29ff7d005e
+6 -1
View File
@@ -65,6 +65,12 @@ import VConsole from 'vuex'
import isMobile from "./store/isMobile";
// 路由拦截
router.beforeEach(function (to, from, next) {
let fromName = from.name
if(fromName === undefined || fromName === null){
window.sessionStorage.clear()
}
let toName = to.name
if (toName === 'CheckPage') {
next()
@@ -75,7 +81,6 @@ router.beforeEach(function (to, from, next) {
window.location.href = ssoLoginUrlDev
}
let fromName = from.name
let token = store.state.token
let path = to.path;
let userName = ""