mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2025-01-10 16:19:13 +08:00
修复文件上传组件生成的下载路径问题。
This commit is contained in:
parent
5d61682431
commit
4bf7d376b2
@ -207,9 +207,13 @@
|
|||||||
this.updateFieldModelAndEmitDataChangeForUpload(fileList, customResult, res)
|
this.updateFieldModelAndEmitDataChangeForUpload(fileList, customResult, res)
|
||||||
if (!!customResult && !!customResult.name) {
|
if (!!customResult && !!customResult.name) {
|
||||||
file.name = customResult.name
|
file.name = customResult.name
|
||||||
|
} else {
|
||||||
|
file.name = file.name || res.name || res.fileName || res.filename
|
||||||
}
|
}
|
||||||
if (!!customResult && !!customResult.url) {
|
if (!!customResult && !!customResult.url) {
|
||||||
file.url = customResult.url
|
file.url = customResult.url
|
||||||
|
} else {
|
||||||
|
file.url = file.url || res.url
|
||||||
}
|
}
|
||||||
this.fileList = deepClone(fileList)
|
this.fileList = deepClone(fileList)
|
||||||
this.uploadBtnHidden = fileList.length >= this.field.options.limit
|
this.uploadBtnHidden = fileList.length >= this.field.options.limit
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="form-widget-main">
|
<el-main class="form-widget-main">
|
||||||
<el-scrollbar class="container-scroll-bar" :style="{height: scrollerHeight}">
|
<el-scrollbar class="container-scroll-bar" :style="{height: scrollerHeight}">
|
||||||
<v-form-widget :designer="designer" :form-config="designer.formConfig">
|
<v-form-widget :designer="designer" :form-config="designer.formConfig" ref="formRef">
|
||||||
</v-form-widget>
|
</v-form-widget>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-main>
|
</el-main>
|
||||||
@ -284,6 +284,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (modifiedFlag) {
|
if (modifiedFlag) {
|
||||||
|
this.$refs.formRef.clearWidgetRefList()
|
||||||
this.designer.emitHistoryChange()
|
this.designer.emitHistoryChange()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user