From 12cd01765c1f50806d49457685821a8680c7227e Mon Sep 17 00:00:00 2001 From: wanglei Date: Fri, 28 Jun 2024 10:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dangan-ui/src/components/ImageUpload/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; });