Merge pull request #453 from jamebal/dev

fix: 修复取消分享后列表不刷新的问题
This commit is contained in:
jmal 2025-08-05 11:04:26 +08:00 committed by GitHub
commit ea34bed9cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -231,8 +231,8 @@ export default {
case 'onUploadParams':
this.params = msg.data || {}
if (this.resolveFilesAddedPromise) {
// this.resolveFilesAddedPromise();
// this.resolveFilesAddedPromise = null;
this.resolveFilesAddedPromise();
this.resolveFilesAddedPromise = null;
}
break
}

View File

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