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.') }