fix: 验证码错误后清空验证码输入框 (#740)

This commit is contained in:
ssongliu
2023-04-21 02:08:10 +00:00
committed by GitHub
parent 4399ffa9a4
commit 0f6e98be20
@@ -303,6 +303,7 @@ const login = (formEl: FormInstance | undefined) => {
const res = await loginApi(requestLoginForm);
if (res.code === 406) {
if (res.message === 'ErrCaptchaCode') {
loginForm.captcha = '';
errCaptcha.value = true;
errAuthInfo.value = false;
}