Fix: loading captcha in first load

This commit is contained in:
HFO4 2020-03-12 14:46:24 +08:00
parent 220a080a1b
commit bcaeeb55d2
3 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ function LoginForm() {
if (loginCaptcha) {
refreshCaptcha();
}
}, [location]);
}, [location,loginCaptcha]);
const authnLogin = e => {
e.preventDefault();

View File

@ -165,7 +165,7 @@ function Register() {
if (regCaptcha) {
refreshCaptcha();
}
}, []);
}, [regCaptcha]);
return (
<div className={classes.layout}>

View File

@ -101,7 +101,7 @@ function Reset() {
refreshCaptcha();
}
// eslint-disable-next-line
}, []);
}, [forgetCaptcha]);
const submit = e => {
e.preventDefault();