From cb2c4cd1ed2fe4cf5176486357ccb5aa97209a32 Mon Sep 17 00:00:00 2001 From: hzz Date: Wed, 28 Jun 2023 10:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageUpload/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 7864a4a..cea56a1 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -93,11 +93,11 @@ watch(() => props.modelValue, val => { // 然后将数组转为对象数组 fileList.value = list.map(item => { if (typeof item === "string") { - if (item.indexOf(baseUrl) === -1) { - item = { name: baseUrl + item, url: baseUrl + item }; - } else { + // if (item.indexOf(baseUrl) === -1) { + // item = { name: baseUrl + item, url: baseUrl + item }; + // } else { + // } item = { name: item, url: item }; - } } return item; });