fix: 优化文件删除逻辑(采用前端删除文件)
This commit is contained in:
@@ -197,17 +197,17 @@ const handleDownload = (row) => {
|
||||
})
|
||||
}
|
||||
const handleDelete = (row) => {
|
||||
deleteFile(row.fileId).then(res => {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
type: res.code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
if (res.code === 1000) {
|
||||
// deleteFile(row.fileId).then(res => {
|
||||
// ElNotification({
|
||||
// title: '提示',
|
||||
// message: res.msg,
|
||||
// type: res.code === 1000 ? 'success' : 'error'
|
||||
// })
|
||||
// if (res.code === 1000) {
|
||||
formData.value.files.splice(formData.value.files.findIndex((item) => item.fileId === row.fileId), 1);
|
||||
// showTable.value = formData.value.files.length !== 0;
|
||||
}
|
||||
});
|
||||
// }
|
||||
// });
|
||||
}
|
||||
const compositeParam = (item) => {
|
||||
let tag = ''
|
||||
|
||||
Reference in New Issue
Block a user