diff --git a/web/src/common/CountDownInput.js b/web/src/common/CountDownInput.js index c7da5346..22ef207c 100644 --- a/web/src/common/CountDownInput.js +++ b/web/src/common/CountDownInput.js @@ -69,7 +69,11 @@ export const CountDownInput = (props) => { const loadCaptcha = () => { UserBackend.getCaptcha("admin", authConfig.appName, false).then(res => { if (res.type === "none") { - UserBackend.sendCode("none", "", "", ...onButtonClickArgs); + UserBackend.sendCode("none", "", "", ...onButtonClickArgs).then(res => { + if (res) { + handleCountDown(60); + } + }); } else if (res.type === "Default") { setCheckId(res.captchaId); setCaptchaImg(res.captchaImage);