修复表单onFormMounted事件中无法获取组件的问题。
parent
ef33f5a3a4
commit
f4cb23cd08
|
@ -413,8 +413,10 @@
|
|||
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
||||
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.')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue