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();
}
} }
} }
} }