commit
ea34bed9cc
@ -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
|
||||
}
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user