11
This commit is contained in:
parent
fe227d03c2
commit
89be2fcb63
@ -133,24 +133,24 @@ export default {
|
||||
register() {
|
||||
if (this.create) {
|
||||
// 从注册切换到登录清空表单内容
|
||||
this.form.username = "";
|
||||
this.form.password = "";
|
||||
this.form.repassword = "";
|
||||
this.form.username = ""
|
||||
this.form.password = ""
|
||||
this.form.repassword = ""
|
||||
} else if (
|
||||
this.form.username ||
|
||||
this.form.password ||
|
||||
this.form.repassword
|
||||
) {
|
||||
// 从登录切换到注册清空表单内容
|
||||
this.form.username = "";
|
||||
this.form.password = "";
|
||||
this.form.repassword = "";
|
||||
this.form.username = ""
|
||||
this.form.password = ""
|
||||
this.form.repassword = ""
|
||||
}
|
||||
this.create = !this.create;
|
||||
this.create = !this.create
|
||||
// 清除字段的验证错误
|
||||
this.$refs.form.clearValidate("username");
|
||||
this.$refs.form.clearValidate("password");
|
||||
this.$refs.form.clearValidate("repassword");
|
||||
this.$refs.form.clearValidate("username")
|
||||
this.$refs.form.clearValidate("password")
|
||||
this.$refs.form.clearValidate("repassword")
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user