fix: ensure safe removal of item from fileList during single share cancellation
This commit is contained in:
parent
639684cf99
commit
a69fac8462
@ -512,7 +512,9 @@
|
|||||||
if(shareIds.length === 1){
|
if(shareIds.length === 1){
|
||||||
// 如果是单个取消分享
|
// 如果是单个取消分享
|
||||||
const index = this.fileList.findIndex(item => item.id === shareIds[0])
|
const index = this.fileList.findIndex(item => item.id === shareIds[0])
|
||||||
this.fileList.splice(index,1)
|
if (index > -1) {
|
||||||
|
this.fileList.splice(index, 1)
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user