修复表单onFormMounted事件中无法获取组件的问题。

This commit is contained in:
vdpAdmin 2022-02-16 17:08:54 +08:00
parent 3e1ae97b04
commit 46ef8d00e8

View File

@ -360,8 +360,10 @@
this._provided.formConfig = newFormJsonObj.formConfig //provideformConfig
this.formJsonObj['widgetList'] = newFormJsonObj.widgetList
this.initFormObject()
this.handleOnMounted()
this.$nextTick(() => {
this.initFormObject()
this.handleOnMounted()
})
} else {
this.$message.error('Set form json failed.')
}