增加语言切换菜单显示延时。

This commit is contained in:
vdpAdmin
2022-05-19 09:36:44 +08:00
parent 75f08c4065
commit fb10ee4ee3
3 changed files with 7 additions and 5 deletions

View File

@ -152,9 +152,11 @@
this.handleOnMounted()
},
methods: {
initFormObject() {
initFormObject(insertHtmlCodeFlag = true) {
this.formId = 'vfRender' + generateId()
this.insertCustomStyleAndScriptNode()
if (!!insertHtmlCodeFlag) {
this.insertCustomStyleAndScriptNode()
}
this.addFieldChangeEventHandler()
this.addFieldValidateEventHandler()
this.registerFormToRefList()
@ -418,8 +420,9 @@
this.formJsonObj['formConfig'] = newFormJsonObj.formConfig
this.formJsonObj['widgetList'] = newFormJsonObj.widgetList
this.insertCustomStyleAndScriptNode() /* 必须先插入表单全局函数否则VForm内部引用全局函数会报错 */
this.$nextTick(() => {
this.initFormObject()
this.initFormObject(false)
this.handleOnMounted()
})
} else {