mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-30 16:52:46 +00:00
Fix: loading captcha in first load
This commit is contained in:
parent
220a080a1b
commit
bcaeeb55d2
|
|
@ -143,7 +143,7 @@ function LoginForm() {
|
|||
if (loginCaptcha) {
|
||||
refreshCaptcha();
|
||||
}
|
||||
}, [location]);
|
||||
}, [location,loginCaptcha]);
|
||||
|
||||
const authnLogin = e => {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ function Register() {
|
|||
if (regCaptcha) {
|
||||
refreshCaptcha();
|
||||
}
|
||||
}, []);
|
||||
}, [regCaptcha]);
|
||||
|
||||
return (
|
||||
<div className={classes.layout}>
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ function Reset() {
|
|||
refreshCaptcha();
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
}, []);
|
||||
}, [forgetCaptcha]);
|
||||
|
||||
const submit = e => {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue