1. setFormJson后清空已过期的refList数据;

2. 修复文件上传组件生成的下载路径问题。
master
vdpAdmin 2023-02-09 13:35:23 +08:00
parent 9e20d046c5
commit 05d2b0c408
3 changed files with 12 additions and 0 deletions

View File

@ -201,9 +201,13 @@
this.updateFieldModelAndEmitDataChangeForUpload(fileList, customResult, res)
if (!!customResult && !!customResult.name) {
file.name = customResult.name
} else {
file.name = file.name || res.name || res.fileName || res.filename
}
if (!!customResult && !!customResult.url) {
file.url = customResult.url
} else {
file.url = file.url || res.url
}
this.fileList = deepClone(fileList)
this.uploadBtnHidden = fileList.length >= this.field.options.limit

View File

@ -172,6 +172,12 @@
return this.getWidgetRef(wName)
},
clearWidgetRefList() {
Object.keys(this.widgetRefList).forEach(key => {
delete this.widgetRefList[key]
})
},
}
}
</script>

View File

@ -280,6 +280,7 @@
}
if (modifiedFlag) {
this.$refs.formRef.clearWidgetRefList()
this.designer.emitHistoryChange()
}
}
@ -294,6 +295,7 @@
clearDesigner() {
this.$refs.toolbarRef.clearFormWidget()
this.$refs.formRef.clearWidgetRefList()
},