图片和文件上传优化

This commit is contained in:
kerwincui
2022-06-05 14:51:10 +08:00
parent ba128edd40
commit 12b88d2a93
4 changed files with 7 additions and 27 deletions

View File

@@ -124,7 +124,7 @@ export default {
},
// 上传成功回调
handleUploadSuccess(res) {
this.fileList.push({ name: res.fileName, url: process.env.VUE_APP_BASE_API + "/iot/tool/download?fileName="+res.fileName });
this.fileList.push({ name: res.fileName, url: process.env.VUE_APP_BASE_API +res.fileName });
this.$emit("input", this.listToString(this.fileList));
this.loading.close();
},