1
continuous-integration/drone/push Build is failing Details

uat_us
wangxiaoshuang 2025-01-03 09:47:57 +08:00
parent 6e66b77857
commit 7f18e717b7
2 changed files with 4 additions and 3 deletions

View File

@ -153,9 +153,9 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
} }
// let data = { let data = {
// IdentityUserId: this.form.IdentityUserId, // IdentityUserId: this.form.IdentityUserId,
// }; };
if (this.status === "lock") { if (this.status === "lock") {
data.MfaType = 1; data.MfaType = 1;
} }

View File

@ -85,6 +85,7 @@ router.beforeEach(async (to, from, next) => {
router.addRoutes(accessRoutes) router.addRoutes(accessRoutes)
next({ ...to, replace: true }) next({ ...to, replace: true })
} catch (error) { } catch (error) {
console.log(error)
// 删除token并进入登录页面以重新登录 // 删除token并进入登录页面以重新登录
await store.dispatch('user/resetToken') await store.dispatch('user/resetToken')
next(`/login?redirect=${to.path}`) next(`/login?redirect=${to.path}`)