<el-form ref="loginForm" :model="user" :rules="loginRules" size="large"></el-form>
changeType(){
this.type = this.type == 2?1:2;
this.clearVail();
// this.user.name = '';
// this.user.password = '';
},
//清除驗證
clearVail(){
this.$refs['loginForm'].clearValidate();
},