fix: 平台登录失败后刷新验证码

This commit is contained in:
2026-10-30 12:09:20 +08:00
parent 559548d577
commit 811dc448cb
3 changed files with 51 additions and 11 deletions
+4 -2
View File
@@ -80,7 +80,8 @@ async function beginLogin() {
stopCountdown();
smsCode.value = "";
captcha.value = "";
if (result.captcha) captchaUrl.value = result.captcha;
captchaUrl.value = result.captcha || "";
captchaBroken.value = !captchaUrl.value;
errorText.value = result.message || "请重新输入验证码";
return;
}
@@ -218,7 +219,8 @@ async function finishNqi() {
stopCountdown();
smsCode.value = "";
captcha.value = "";
if (result.captcha) captchaUrl.value = result.captcha;
captchaUrl.value = result.captcha || "";
captchaBroken.value = !captchaUrl.value;
errorText.value = result.message || "请重新输入验证码";
return;
}