chore: 错误时刷新验证码
This commit is contained in:
parent
481f529086
commit
ca645cfc91
@ -66,14 +66,11 @@ async function handleAccountLogin(values: LoginForm) {
|
||||
console.error(error);
|
||||
// 处理验证码错误
|
||||
if (error instanceof Error) {
|
||||
const message = error.message;
|
||||
if (message.includes('captcha') || message.includes('验证码')) {
|
||||
// 刷新验证码
|
||||
loginRef.value?.resetCaptcha();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleOauthLogin(provider: string) {
|
||||
switch (provider) {
|
||||
|
Loading…
Reference in New Issue
Block a user