【update】修改bug

This commit is contained in:
fengchenchen
2024-04-08 16:21:37 +08:00
parent d0fd7f1798
commit 124d119249
+4
View File
@@ -22,6 +22,8 @@ router.beforeEach(async (to, from, next) => {
Vue.prototype.$message.warning(message, 3, () => {
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
})
// 必须切断执行
return
} else {
const userInfo = result.userInfo
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, () => {
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
})
// 必须切断执行
return
} else {
const userInfo = result.userInfo
Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)