fix : 修复文件删除功能

This commit is contained in:
2024-07-06 23:08:36 +08:00
parent 06524178c7
commit edec70ebbb
4 changed files with 5 additions and 5 deletions

View File

@@ -344,7 +344,7 @@ const deleteSingleFile = (row, type) => {
if (type === 1) {
singleFile.value = null
} else {
props.otherFileList.splice(props.otherFileList.findIndex((item) => item.id === row.fileId), 1);
props.otherFileList.splice(props.otherFileList.findIndex((item) => item.fileId === row.fileId), 1);
}
}
});

View File

@@ -152,7 +152,7 @@ const handleDelete = (row) => {
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
_value.value.splice(_value.value.findIndex((item) => item.id === row.fileId), 1);
_value.value.splice(_value.value.findIndex((item) => item.fileId === row.fileId), 1);
}
});
}