Commit 808328dc7e56b1cc07b678d501d9589290173443

Authored by 无木
1 parent 5d554f18

fix(form): schemas update problem

修复某些情况下重设schemas数据不会生效的问题

fixed #688
src/components/Form/src/BasicForm.vue
... ... @@ -196,6 +196,13 @@
196 196 );
197 197  
198 198 watch(
  199 + () => unref(getProps).schemas,
  200 + (schemas) => {
  201 + resetSchema(schemas ?? []);
  202 + }
  203 + );
  204 +
  205 + watch(
199 206 () => getSchema.value,
200 207 (schema) => {
201 208 nextTick(() => {
... ...