更新图片上传组件

This commit is contained in:
kerwincui
2022-04-08 11:24:37 +08:00
parent 0521511dfd
commit 77178e05e8

View File

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