diff --git a/dangan-ui/src/components/ImageUpload/index.vue b/dangan-ui/src/components/ImageUpload/index.vue index 9ac7bd7..0bd581c 100644 --- a/dangan-ui/src/components/ImageUpload/index.vue +++ b/dangan-ui/src/components/ImageUpload/index.vue @@ -93,11 +93,12 @@ export default { // 然后将数组转为对象数组 this.fileList = list.map(item => { if (typeof item === "string") { - if (item.indexOf(this.baseUrl) === -1) { + /*if (item.indexOf(this.baseUrl) === -1) { item = { name: this.baseUrl + item, url: this.baseUrl + item }; } else { item = { name: item, url: item }; - } + }*/ + item = { name: item, url: item }; } return item; });