feat: There is no way the,
This commit is contained in:
+6
-1
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user