mirror of https://gitee.com/answerdev/answer.git
fix(useCaptchaModal): The first time `captcha_error` is encountered it is validated directly.
This commit is contained in:
parent
789f566869
commit
3880eab449
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue