校验后
resetForm(formName) {
this.$refs[formName].resetFields();
}
watch: {
drawerLog(newValue, oldValue) {
console.log(newValue, oldValue, "drawerLog");
if (newValue && (oldValue != undefined)) {
this.resetForm('formLog');
}
},
},
// 特定字段name 的验证清除
this.$nextTick(() => {
this.$refs[formName].clearValidate("name");
});