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

master
vdpAdmin 2022-02-16 17:08:24 +08:00
parent ef33f5a3a4
commit f4cb23cd08
1 changed files with 4 additions and 2 deletions

View File

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