ImageUpload组件上传图片,本地开发上传,不加 process.env.VUE_APP_BASE_API 前缀,回调成功不能展示图片内容

This commit is contained in:
ww 2021-09-27 15:20:03 +08:00
parent ded99502ae
commit aaf329ce10

View File

@ -18,7 +18,7 @@
>
<i class="el-icon-plus"></i>
</el-upload>
<!-- 上传提示 -->
<div class="el-upload__tip" slot="tip" v-if="showTip">
请上传
@ -124,7 +124,7 @@ export default {
},
//
handleUploadSuccess(res) {
this.fileList.push({ name: res.fileName, url: res.fileName });
this.fileList.push({ name: this.baseUrl + res.fileName, url: this.baseUrl + res.fileName });
this.$emit("input", this.listToString(this.fileList));
this.loading.close();
},