commit
ea34bed9cc
@ -231,8 +231,8 @@ export default {
|
|||||||
case 'onUploadParams':
|
case 'onUploadParams':
|
||||||
this.params = msg.data || {}
|
this.params = msg.data || {}
|
||||||
if (this.resolveFilesAddedPromise) {
|
if (this.resolveFilesAddedPromise) {
|
||||||
// this.resolveFilesAddedPromise();
|
this.resolveFilesAddedPromise();
|
||||||
// this.resolveFilesAddedPromise = null;
|
this.resolveFilesAddedPromise = null;
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
@ -510,7 +510,11 @@
|
|||||||
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])
|
||||||
|
if (index > -1) {
|
||||||
|
this.fileList.splice(index, 1)
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
this.getFileList()
|
this.getFileList()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user