diff --git a/src/components/MFA/index.vue b/src/components/MFA/index.vue index 02a9edd7..71f92718 100644 --- a/src/components/MFA/index.vue +++ b/src/components/MFA/index.vue @@ -153,7 +153,13 @@ export default { clearInterval(this.timer); this.timer = null; } - let res = await sendMFAEmail(this.form); + let data = { + UserId: this.form.UserId, + }; + if (this.status === "lock") { + data.MfaType = 1; + } + let res = await sendMFAEmail(data); this.sendFlag = false; if (res.IsSuccess) { this.flag = true; diff --git a/src/main.js b/src/main.js index 2befb6bf..e6053109 100644 --- a/src/main.js +++ b/src/main.js @@ -432,7 +432,7 @@ async function VueInit() { }, 500) } if (process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa') { - sendMFAEmail({ UserId: my_userid }).then((res) => { + sendMFAEmail({ UserId: my_userid, MfaType: 1 }).then((res) => { done(); Vue.prototype.$MFA({ status: "lock",