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: {