fixed: Fixed an issue with MFA popover not closing

This commit is contained in:
zhaojisen 2024-06-24 17:00:11 +08:00
parent cd94116465
commit d4fff004c9

View File

@ -132,7 +132,7 @@ export default {
this.inputPlaceholder = this.subTypeChoices.filter(item => item.name === val)[0]?.placeholder
this.smsWidth = val === 'sms' ? 6 : 0
},
performConfirm({ response, callback, cancel }) {
performConfirm: _.throttle(function({ response, callback, cancel }) {
if (this.processing || this.visible) {
return
}
@ -155,7 +155,6 @@ export default {
})
return
}
this.subTypeChoices = data.content
const defaultSubType = this.subTypeChoices.filter(item => !item.disabled)[0]
this.subTypeSelected = defaultSubType.name
@ -169,7 +168,7 @@ export default {
}).finally(() => {
this.processing = false
})
},
}, 500),
logout() {
window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${this.$route.fullPath}`
},