fix : 修复文件删除功能

This commit is contained in:
2024-07-06 23:10:45 +08:00
parent edec70ebbb
commit 3c564b600b

View File

@@ -457,7 +457,7 @@ const handleDelete = (row) => {
type: res.code === 1000 ? 'success' : 'error' type: res.code === 1000 ? 'success' : 'error'
}) })
if (res.code === 1000) { if (res.code === 1000) {
formData.value.fileList.splice(formData.value.fileList.findIndex((item) => item.id === row.fileId), 1); formData.value.fileList.splice(formData.value.fileList.findIndex((item) => item.fileId === row.fileId), 1);
// showTable.value = formData.value.fileList.length !== 0; // showTable.value = formData.value.fileList.length !== 0;
} }
}); });