fix: ensure safe removal of item from fileList during single share cancellation

This commit is contained in:
jmal 2025-08-05 11:04:09 +08:00
parent 639684cf99
commit a69fac8462

View File

@ -512,7 +512,9 @@
if(shareIds.length === 1){
// 如果是单个取消分享
const index = this.fileList.findIndex(item => item.id === shareIds[0])
this.fileList.splice(index,1)
if (index > -1) {
this.fileList.splice(index, 1)
}
}else{
this.getFileList()
}