Skip to content

Commit

Permalink
fix(form): schemas update problem
Browse files Browse the repository at this point in the history
修复某些情况下重设schemas数据不会生效的问题

fixed #688
  • Loading branch information
mynetfan committed Jun 3, 2021
1 parent 5d554f1 commit 808328d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Form/src/BasicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@
}
);
watch(
() => unref(getProps).schemas,
(schemas) => {
resetSchema(schemas ?? []);
}
);
watch(
() => getSchema.value,
(schema) => {
Expand Down

0 comments on commit 808328d

Please sign in to comment.