fix: 优化文件删除逻辑(采用前端删除文件)
This commit is contained in:
@@ -428,7 +428,8 @@ const handleDelete = (row, type) => {
|
|||||||
let collectData = JSON.parse(localStorage.getItem('collectData'))
|
let collectData = JSON.parse(localStorage.getItem('collectData'))
|
||||||
collectData.fileList = allFileList.value
|
collectData.fileList = allFileList.value
|
||||||
localStorage.setItem('collectData', JSON.stringify(collectData))
|
localStorage.setItem('collectData', JSON.stringify(collectData))
|
||||||
}else if (localStorage.getItem('otherFileList')) {
|
}
|
||||||
|
if (localStorage.getItem('otherFileList')) {
|
||||||
localStorage.setItem('otherFileList', JSON.stringify(allFileList.value))
|
localStorage.setItem('otherFileList', JSON.stringify(allFileList.value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user