fix(useCaptchaModal): The first time `captcha_error` is encountered it is validated directly.

This commit is contained in:
haitaoo 2023-07-24 14:28:26 +08:00
parent 789f566869
commit 3880eab449
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ const Index = (captchaKey: CaptchaKey) => {
});
}
fetchCaptchaData();
show();
} else {
setImgCode({
...ri,
@ -238,6 +239,7 @@ const Index = (captchaKey: CaptchaKey) => {
refCallback.current = submitFunc;
if (captcha?.verify) {
show();
return false;
}
return submitFunc();
},