mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-10-28 16:57:08 +08:00
fix: 修复部分行为验证码使用错误
This commit is contained in:
@@ -96,6 +96,8 @@ const onCaptcha = async () => {
|
|||||||
if (captchaLoading.value) return
|
if (captchaLoading.value) return
|
||||||
const isInvalid = await formRef.value?.validateField('email')
|
const isInvalid = await formRef.value?.validateField('email')
|
||||||
if (isInvalid) return
|
if (isInvalid) return
|
||||||
|
// 重置行为参数
|
||||||
|
VerifyRef.value.instance.refresh()
|
||||||
VerifyRef.value.show()
|
VerifyRef.value.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,6 @@ const resetCaptcha = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
|
|
||||||
const getCaptcha = async (captchaReq: BehaviorCaptchaReq) => {
|
const getCaptcha = async (captchaReq: BehaviorCaptchaReq) => {
|
||||||
try {
|
try {
|
||||||
captchaLoading.value = true
|
captchaLoading.value = true
|
||||||
|
|||||||
@@ -159,6 +159,8 @@ const onCaptcha = async () => {
|
|||||||
if (captchaLoading.value) return
|
if (captchaLoading.value) return
|
||||||
const isInvalid = await formRef.value?.formRef?.validateField(verifyType.value === 'phone' ? 'phone' : 'email')
|
const isInvalid = await formRef.value?.formRef?.validateField(verifyType.value === 'phone' ? 'phone' : 'email')
|
||||||
if (isInvalid) return
|
if (isInvalid) return
|
||||||
|
// 重置行为参数
|
||||||
|
VerifyRef.value.instance.refresh()
|
||||||
VerifyRef.value.show()
|
VerifyRef.value.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user