@@ -153,9 +153,9 @@ export default {
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
// let data = {
|
||||
// IdentityUserId: this.form.IdentityUserId,
|
||||
// };
|
||||
let data = {
|
||||
// IdentityUserId: this.form.IdentityUserId,
|
||||
};
|
||||
if (this.status === "lock") {
|
||||
data.MfaType = 1;
|
||||
}
|
||||
|
||||
@@ -85,6 +85,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
router.addRoutes(accessRoutes)
|
||||
next({ ...to, replace: true })
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
// 删除token并进入登录页面以重新登录
|
||||
await store.dispatch('user/resetToken')
|
||||
next(`/login?redirect=${to.path}`)
|
||||
|
||||
Reference in New Issue
Block a user