diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 6ef8f7b..2771dce 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -92,7 +92,11 @@ export default { this.fileList = list.map(item => { if (typeof item === "string") { // edit by 芋道源码 - item = { name: item, url: this.viewFileUrl+item }; + if(item.includes(this.viewFileUrl)){ + item = { name: item, url: item }; + }else{ + item = { name: item, url: this.viewFileUrl+item }; + } } return item; });