【update】修改bug
This commit is contained in:
@@ -22,6 +22,8 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
Vue.prototype.$message.warning(message, 3, () => {
|
Vue.prototype.$message.warning(message, 3, () => {
|
||||||
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
||||||
})
|
})
|
||||||
|
// 必须切断执行
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
const userInfo = result.userInfo
|
const userInfo = result.userInfo
|
||||||
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
|
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
|
||||||
@@ -40,6 +42,8 @@ router.beforeEach(async (to, from, next) => {
|
|||||||
Vue.prototype.$message.warning(message, 3, () => {
|
Vue.prototype.$message.warning(message, 3, () => {
|
||||||
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
||||||
})
|
})
|
||||||
|
// 必须切断执行
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
const userInfo = result.userInfo
|
const userInfo = result.userInfo
|
||||||
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
|
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user