diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d538a32..92b9ca3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -282,10 +282,11 @@ export default { this.$store.dispatch('user/verifyMfaCode', this.loginForm).then(() => { this.$store.dispatch('user/setMenuList').then(() => { this.$router.push({ path: this.redirect || '/' }) - this.verifyMfaCodeLoading = false - }).catch(() => { + }).finally(() => { this.verifyMfaCodeLoading = false }) + }).catch(() => { + this.verifyMfaCodeLoading = false }) }, validUsername() { diff --git a/src/views/setting/cloudSetting/mfaConfig.vue b/src/views/setting/cloudSetting/mfaConfig.vue index 58765e4..d609d4e 100644 --- a/src/views/setting/cloudSetting/mfaConfig.vue +++ b/src/views/setting/cloudSetting/mfaConfig.vue @@ -25,8 +25,7 @@