From 6b709a76222dbda58f6baad342eba1a3146efd93 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Sat, 19 Oct 2024 10:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageUpload/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; });