chore: 错误时刷新验证码

This commit is contained in:
dap
2024-09-02 14:17:49 +08:00
parent 481f529086
commit ca645cfc91

View File

@@ -66,11 +66,8 @@ async function handleAccountLogin(values: LoginForm) {
console.error(error); console.error(error);
// 处理验证码错误 // 处理验证码错误
if (error instanceof Error) { if (error instanceof Error) {
const message = error.message; // 刷新验证码
if (message.includes('captcha') || message.includes('验证码')) { loginRef.value?.resetCaptcha();
// 刷新验证码
loginRef.value?.resetCaptcha();
}
} }
} }
} }