mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-12 03:51:57 +00:00
fixed: Fixed an issue with MFA popover not closing
This commit is contained in:
parent
cd94116465
commit
d4fff004c9
@ -132,7 +132,7 @@ export default {
|
|||||||
this.inputPlaceholder = this.subTypeChoices.filter(item => item.name === val)[0]?.placeholder
|
this.inputPlaceholder = this.subTypeChoices.filter(item => item.name === val)[0]?.placeholder
|
||||||
this.smsWidth = val === 'sms' ? 6 : 0
|
this.smsWidth = val === 'sms' ? 6 : 0
|
||||||
},
|
},
|
||||||
performConfirm({ response, callback, cancel }) {
|
performConfirm: _.throttle(function({ response, callback, cancel }) {
|
||||||
if (this.processing || this.visible) {
|
if (this.processing || this.visible) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -155,7 +155,6 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this.subTypeChoices = data.content
|
this.subTypeChoices = data.content
|
||||||
const defaultSubType = this.subTypeChoices.filter(item => !item.disabled)[0]
|
const defaultSubType = this.subTypeChoices.filter(item => !item.disabled)[0]
|
||||||
this.subTypeSelected = defaultSubType.name
|
this.subTypeSelected = defaultSubType.name
|
||||||
@ -169,7 +168,7 @@ export default {
|
|||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.processing = false
|
this.processing = false
|
||||||
})
|
})
|
||||||
},
|
}, 500),
|
||||||
logout() {
|
logout() {
|
||||||
window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${this.$route.fullPath}`
|
window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${this.$route.fullPath}`
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user