fix: 重发验证码&图片路径

This commit is contained in:
zhangyahui
2025-10-30 13:54:11 +08:00
parent aad931182e
commit ca30dc0941
5 changed files with 19 additions and 12 deletions

View File

@@ -22,6 +22,7 @@
v-else-if="step === 'verify'"
:ct="emailCode"
@nextStep="handleCheckVerifyCode"
@resend="handleSendVerifyCode"
/>
<Password v-else-if="step === 'password'" @sucess="handleSuccess" />
</div>
@@ -75,8 +76,10 @@ const handleStep = (type: 'mail' | 'verify' | 'password') => {
}
const handleSendVerifyCode = (data: any) => {
fromData.value.email = data.email
precheckEmail({ email: data.email }).then(() => {
if (data?.email) {
fromData.value.email = data?.email
}
precheckEmail({ email: fromData.value.email }).then(() => {
showToast('the verification code has been sent to your email')
handleStep('verify')
})