From 61bb8c07c406e85a471c59c182bf91a2d21154b0 Mon Sep 17 00:00:00 2001 From: halo Date: Mon, 7 Apr 2025 20:43:31 +0800 Subject: [PATCH] fix: Optimize UserConfirmDialog to send code via email --- src/components/Apps/UserConfirmDialog/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Apps/UserConfirmDialog/index.vue b/src/components/Apps/UserConfirmDialog/index.vue index 2116defbe..54fcaec71 100644 --- a/src/components/Apps/UserConfirmDialog/index.vue +++ b/src/components/Apps/UserConfirmDialog/index.vue @@ -67,13 +67,13 @@ style="width: 100%; height: 800px;border: none;" /> - + {{ smsBtnText }} @@ -204,8 +204,8 @@ export default { logout() { window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${this.$route.fullPath}` }, - sendSMSCode() { - this.$axios.post(`/api/v1/authentication/mfa/select/`, { type: 'sms' }).then(res => { + sendCode() { + this.$axios.post(`/api/v1/authentication/mfa/select/`, { type: this.subTypeSelected }).then(res => { this.$message.success(this.$tc('VerificationCodeSent')) let time = 60 this.smsBtnDisabled = true