fix: update fileList handling for single share cancellation
This commit is contained in:
parent
3abe60da9a
commit
639684cf99
@ -510,7 +510,9 @@
|
|||||||
shareId: shareIds
|
shareId: shareIds
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
if(shareIds.length === 1){
|
if(shareIds.length === 1){
|
||||||
this.fileList.splice(row.index,1)
|
// 如果是单个取消分享
|
||||||
|
const index = this.fileList.findIndex(item => item.id === shareIds[0])
|
||||||
|
this.fileList.splice(index,1)
|
||||||
}else{
|
}else{
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user