Commit 808328dc7e56b1cc07b678d501d9589290173443
1 parent
5d554f18
fix(form): schemas update problem
修复某些情况下重设schemas数据不会生效的问题 fixed #688
Showing
1 changed file
with
7 additions
and
0 deletions
src/components/Form/src/BasicForm.vue
@@ -196,6 +196,13 @@ | @@ -196,6 +196,13 @@ | ||
196 | ); | 196 | ); |
197 | 197 | ||
198 | watch( | 198 | watch( |
199 | + () => unref(getProps).schemas, | ||
200 | + (schemas) => { | ||
201 | + resetSchema(schemas ?? []); | ||
202 | + } | ||
203 | + ); | ||
204 | + | ||
205 | + watch( | ||
199 | () => getSchema.value, | 206 | () => getSchema.value, |
200 | (schema) => { | 207 | (schema) => { |
201 | nextTick(() => { | 208 | nextTick(() => { |