Browse Source

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

pull/741/head
ssongliu 2 years ago committed by GitHub
parent
commit
0f6e98be20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      frontend/src/views/login/components/login-form.vue

1
frontend/src/views/login/components/login-form.vue

@ -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;
}

Loading…
Cancel
Save