From 00a2b7a3afa0867ea9ba7343faa51231e528e992 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 3 Jun 2024 21:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=AA=8C=E6=94=B6=E5=85=B6=E4=BB=96=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AttachmentUpload.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index ce4ea51..400e929 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -133,14 +133,13 @@ watch(() => props.showTable, (newVal) => { watch(() => props.otherFileList, (newVal) => { console.log('newotherFileList', newVal) if (props.preview) { - if (props.formData.fileList == null) { + if (props.formData.fileList.length===0) { allFileList.value = newVal } else { newVal?.forEach(item => { allFileList.value.push(item) }) } - } else { allFileList.value = newVal }