diff --git a/vue/src/components/ImageUpload/index.vue b/vue/src/components/ImageUpload/index.vue index b702a120..d927a2c3 100644 --- a/vue/src/components/ImageUpload/index.vue +++ b/vue/src/components/ImageUpload/index.vue @@ -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(); },