diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index acbb489..5e755c8 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -428,7 +428,8 @@ const handleDelete = (row, type) => { let collectData = JSON.parse(localStorage.getItem('collectData')) collectData.fileList = allFileList.value localStorage.setItem('collectData', JSON.stringify(collectData)) - }else if (localStorage.getItem('otherFileList')) { + } + if (localStorage.getItem('otherFileList')) { localStorage.setItem('otherFileList', JSON.stringify(allFileList.value)) } }