From 46ef8d00e85a8fb78e8e78fec545ac4ab847bf42 Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Wed, 16 Feb 2022 17:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95onFormMount?= =?UTF-8?q?ed=E4=BA=8B=E4=BB=B6=E4=B8=AD=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=BB=84=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form-render/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/form-render/index.vue b/src/components/form-render/index.vue index 3431dba..f52d7d6 100644 --- a/src/components/form-render/index.vue +++ b/src/components/form-render/index.vue @@ -360,8 +360,10 @@ this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象 this.formJsonObj['widgetList'] = newFormJsonObj.widgetList - this.initFormObject() - this.handleOnMounted() + this.$nextTick(() => { + this.initFormObject() + this.handleOnMounted() + }) } else { this.$message.error('Set form json failed.') }