fix 登录验证码刷新后输入不了验证码问题

This commit is contained in:
不做码农 2021-11-15 09:28:31 +08:00
parent 3e4b18bd9a
commit e8911e2c9f

View File

@ -84,7 +84,7 @@ export default {
},
methods: {
getCode() {
this.loginForm.code = "";
// this.loginForm.code = "";
getCodeImg().then((res) => {
this.codeUrl = "data:image/gif;base64," + res.data.img;
this.loginForm.uuid = res.data.uuid;
@ -130,7 +130,6 @@ export default {
.catch((error) => {
this.$message(error.msg);
this.loading = false;
this.loginForm.code = "";
this.getCode();
this.$refs.codeTxt.focus();
});