From 9968d14c393e6362192039d797cd58758a8fc89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD=E5=8F=B6=E6=A9=98=E6=A9=99?= Date: Thu, 25 Apr 2024 02:15:20 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/components/ImagePreview/index.vue.?= =?UTF-8?q?=20=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E5=8A=9F=E8=83=BD=20let?= =?UTF-8?q?=20real=5Fsrc=5Flist=20=3D=20props.src.split(',');=E4=BC=9A?= =?UTF-8?q?=E5=A4=9A=E5=87=BA=E4=B8=80=E4=B8=AA''=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4=E5=9B=BE=E7=89=87=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E6=97=B6=E5=A4=9A=E4=B8=80=E4=B8=AA=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E3=80=82=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=88=A4=E7=A9=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 落叶橘橙 --- src/components/ImagePreview/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index 5543923..349f729 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -38,6 +38,9 @@ const realSrcList = computed(() => { let real_src_list = props.src.split(','); let srcList: string[] = []; real_src_list.forEach((item: string) => { + if(item.trim() === '') { + return; + } return srcList.push(item); }); return srcList;