fix: 修复部分行为验证码使用错误

This commit is contained in:
2025-06-13 22:11:24 +08:00
parent 47f4ca611e
commit 8c100e5753
3 changed files with 4 additions and 1 deletions

View File

@@ -96,6 +96,8 @@ const onCaptcha = async () => {
if (captchaLoading.value) return
const isInvalid = await formRef.value?.validateField('email')
if (isInvalid) return
// 重置行为参数
VerifyRef.value.instance.refresh()
VerifyRef.value.show()
}

View File

@@ -113,7 +113,6 @@ const resetCaptcha = () => {
}
// 获取验证码
const getCaptcha = async (captchaReq: BehaviorCaptchaReq) => {
try {
captchaLoading.value = true

View File

@@ -159,6 +159,8 @@ const onCaptcha = async () => {
if (captchaLoading.value) return
const isInvalid = await formRef.value?.formRef?.validateField(verifyType.value === 'phone' ? 'phone' : 'email')
if (isInvalid) return
// 重置行为参数
VerifyRef.value.instance.refresh()
VerifyRef.value.show()
}