This commit is contained in:
username 2024-04-27 21:12:23 +08:00
parent fe227d03c2
commit 89be2fcb63

View File

@ -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")
},
},
};