From 41a455338f335c048c5ae607331e368db7b47c8e Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Wed, 25 Jun 2025 15:38:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(ProjectAttachment):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E5=88=A0=E9=99=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在删除其他附件时,同时从 allFiles 中移除对应文件 - 移除删除附件后不必要的重新获取附件列表操作 --- src/components/DetailComponent/ProjectAttachment.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DetailComponent/ProjectAttachment.vue b/src/components/DetailComponent/ProjectAttachment.vue index 73608fa..49a204f 100644 --- a/src/components/DetailComponent/ProjectAttachment.vue +++ b/src/components/DetailComponent/ProjectAttachment.vue @@ -186,10 +186,10 @@ const deleteSingleFile = (row) => { localStorage.setItem(`implementAllFileList-${route.query.projectId}`, JSON.stringify(finalList)) } else { otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1); + allFiles.value.splice(allFiles.value.findIndex((item) => item.fileId === row.fileId), 1); } - getAttachmentList() - activeName.value = 'all' + // getAttachmentList() } }); }