Skip to content

Commit

Permalink
fix: 修复获取验证码倒计时显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Oct 26, 2023
1 parent 5bb35a1 commit 2f2905e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
captchaBtnNameKey.value = `${t('login.captcha.get')}(${
captchaTime.value
}s)`;
if (captchaTime.value < 0) {
if (captchaTime.value <= 0) {
window.clearInterval(captchaTimer.value);
captchaTime.value = 60;
captchaBtnNameKey.value = t('login.captcha.get');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
captchaBtnNameKey.value = `${t(
'userCenter.securitySettings.updateEmail.form.reSendCaptcha'
)}(${captchaTime.value}s)`;
if (captchaTime.value < 0) {
if (captchaTime.value <= 0) {
window.clearInterval(captchaTimer.value);
captchaTime.value = 60;
captchaBtnNameKey.value = t(
Expand Down

0 comments on commit 2f2905e

Please sign in to comment.