diff --git a/src/component/Login/LoginForm.js b/src/component/Login/LoginForm.js index 792af5b..fb0249b 100644 --- a/src/component/Login/LoginForm.js +++ b/src/component/Login/LoginForm.js @@ -143,7 +143,7 @@ function LoginForm() { if (loginCaptcha) { refreshCaptcha(); } - }, [location]); + }, [location,loginCaptcha]); const authnLogin = e => { e.preventDefault(); diff --git a/src/component/Login/Register.js b/src/component/Login/Register.js index 0051604..c8b8148 100644 --- a/src/component/Login/Register.js +++ b/src/component/Login/Register.js @@ -165,7 +165,7 @@ function Register() { if (regCaptcha) { refreshCaptcha(); } - }, []); + }, [regCaptcha]); return (
diff --git a/src/component/Login/Reset.js b/src/component/Login/Reset.js index 55876a6..0698e44 100644 --- a/src/component/Login/Reset.js +++ b/src/component/Login/Reset.js @@ -101,7 +101,7 @@ function Reset() { refreshCaptcha(); } // eslint-disable-next-line - }, []); + }, [forgetCaptcha]); const submit = e => { e.preventDefault();