ImageUpload组件上传图片,本地开发上传,不加 process.env.VUE_APP_BASE_API 前缀,回调成功不能展示图片内容
This commit is contained in:
parent
ded99502ae
commit
aaf329ce10
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user