From 3c1860da538d857f003f537ea2c68c44d9349f50 Mon Sep 17 00:00:00 2001 From: Li Jian Date: Sat, 23 Sep 2023 20:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3bug:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=A7=E5=93=81SOP=E7=95=8C=E9=9D=A2=EF=BC=8C=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=A2=84=E8=A7=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ImageUpload/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 63a5696..14b1ff8 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -93,7 +93,7 @@ export default { // 然后将数组转为对象数组 this.fileList = list.map(item => { if (typeof item === "string") { - if (item.indexOf(this.baseUrl) === -1) { + if (item.indexOf(this.baseUrl) === -1 && item.indexOf('://') < 0) { item = { name: this.baseUrl + item, url: this.baseUrl + item }; } else { item = { name: item, url: item };