Skip to content

Commit

Permalink
fix: 修复联动后未清空表单校验结果
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 22, 2021
1 parent 45011e3 commit 873ea47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/component/form-designer/src/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ export default class GenerateForm extends Vue {
// 组件值改变时检查是否需要联动其他组件
if (this.rules.length > 0) {
this.controlFieldHandler(val);
if (this.$refs.generateForm) {
this.$refs.generateForm.clearValidate();
}
}
this.$emit('update:entity', val);
}
Expand Down

0 comments on commit 873ea47

Please sign in to comment.