From a076a277c913741fbafe94d279f63f0e4634e1ac Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 16 Jun 2022 18:07:19 +0800 Subject: [PATCH] fix: confirm bug --- src/components/UserConfirmDialog/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/UserConfirmDialog/index.vue b/src/components/UserConfirmDialog/index.vue index 68605faa1..31a59f2be 100644 --- a/src/components/UserConfirmDialog/index.vue +++ b/src/components/UserConfirmDialog/index.vue @@ -67,16 +67,19 @@ export default { backends.sort((a, b) => b.level - a.level) this.ConfirmType = backends[0].name if (this.ConfirmType === 'relogin') { - this.visible = true + this.visible = false return this.$message.error(this.$t('auth.ReLogin')) - } else if (this.ConfirmType === 'mfa') { + } + + if (this.ConfirmType === 'mfa') { this.Label = 'MFA' this.HelpText = this.$t('common.MFARequireForSecurity') + this.visible = true } else if (this.ConfirmType === 'password') { this.Label = this.$t('setting.password') this.HelpText = this.$t('common.PasswordRequireForSecurity') + this.visible = true } - this.visible = true }) }, methods: {