1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

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

This commit is contained in:
ssongliu 2023-04-21 10:08:10 +08:00 committed by GitHub
parent 4399ffa9a4
commit 0f6e98be20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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