From 808328dc7e56b1cc07b678d501d9589290173443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Thu, 3 Jun 2021 10:54:58 +0800 Subject: [PATCH] fix(form): schemas update problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复某些情况下重设schemas数据不会生效的问题 fixed #688 --- src/components/Form/src/BasicForm.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index 6e467f96..d4770acd 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -195,6 +195,13 @@ } ); + watch( + () => unref(getProps).schemas, + (schemas) => { + resetSchema(schemas ?? []); + } + ); + watch( () => getSchema.value, (schema) => {