fix : 修复实施图片
This commit is contained in:
@@ -173,7 +173,8 @@ const handleDownload = (row) => {
|
||||
})
|
||||
}
|
||||
const deleteSingleFile = (row) => {
|
||||
console.log("🚀 ~ file: ", row)
|
||||
console.log("🚀 ~ file: ", row,otherAttachmentList.value)
|
||||
console.log("🚀 row.newFile ", row.newFile)
|
||||
deleteFile(row.fileId).then(res => {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
@@ -183,6 +184,7 @@ const deleteSingleFile = (row) => {
|
||||
if (res.code === 1000) {
|
||||
if (row.newFile) {
|
||||
const finalList = getLocalList().filter(item => item.fileId !== row.fileId);
|
||||
otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1);
|
||||
localStorage.setItem(`implementAllFileList-${route.query.projectId}`, JSON.stringify(finalList))
|
||||
} else {
|
||||
otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1);
|
||||
|
||||
Reference in New Issue
Block a user