fix: 重发验证码&图片路径
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user