fix: 修复获取验证码倒计时显示

This commit is contained in:
Charles7c 2023-10-26 23:25:50 +08:00
parent 5bb35a13d6
commit 2f2905efdc
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@
captchaBtnNameKey.value = `${t('login.captcha.get')}(${ captchaBtnNameKey.value = `${t('login.captcha.get')}(${
captchaTime.value captchaTime.value
}s)`; }s)`;
if (captchaTime.value < 0) { if (captchaTime.value <= 0) {
window.clearInterval(captchaTimer.value); window.clearInterval(captchaTimer.value);
captchaTime.value = 60; captchaTime.value = 60;
captchaBtnNameKey.value = t('login.captcha.get'); captchaBtnNameKey.value = t('login.captcha.get');

View File

@ -203,7 +203,7 @@
captchaBtnNameKey.value = `${t( captchaBtnNameKey.value = `${t(
'userCenter.securitySettings.updateEmail.form.reSendCaptcha' 'userCenter.securitySettings.updateEmail.form.reSendCaptcha'
)}(${captchaTime.value}s)`; )}(${captchaTime.value}s)`;
if (captchaTime.value < 0) { if (captchaTime.value <= 0) {
window.clearInterval(captchaTimer.value); window.clearInterval(captchaTimer.value);
captchaTime.value = 60; captchaTime.value = 60;
captchaBtnNameKey.value = t( captchaBtnNameKey.value = t(