修复表单onFormMounted事件中无法获取组件的问题。
parent
ef33f5a3a4
commit
f4cb23cd08
|
@ -413,8 +413,10 @@
|
||||||
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
||||||
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
|
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
this.initFormObject()
|
this.initFormObject()
|
||||||
this.handleOnMounted()
|
this.handleOnMounted()
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('Set form json failed.')
|
this.$message.error('Set form json failed.')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue