|
@@ -101,7 +101,7 @@ const breadcrumbFn = function(to, menu) {
|
|
|
const routerBefore = function(router, constantRouterMap) {
|
|
|
let flag = false
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
- localStorage.setItem('fromRoute', JSON.stringify(from))
|
|
|
+ // localStorage.setItem('fromRoute', JSON.stringify(from))
|
|
|
if (document.domain.indexOf('steerinfo.com') > -1) {
|
|
|
document.domain = 'steerinfo.com'
|
|
|
}
|
|
@@ -233,7 +233,7 @@ function DoneCookie(to, from, next, accessToken, flag) {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- /**
|
|
|
+ /**
|
|
|
Message('登录已过期,请重新登录')
|
|
|
setCookie('accessToken', '', -1, '/')
|
|
|
setCookie('refreshToken', '', -1, '/')
|
|
@@ -242,7 +242,7 @@ function DoneCookie(to, from, next, accessToken, flag) {
|
|
|
setCookie('ticket', '', -1, '/')
|
|
|
setTimeout(() => {
|
|
|
window.top.location.href = store.getters.ctx
|
|
|
- }, 500)*/
|
|
|
+ }, 500) */
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|