|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
},
|
|
|
() => { // 上传成功
|
|
|
const index = this.uploadListForUI.findIndex((eachItem) => {
|
|
|
- eachItem.uid === itemInUploadList.uid
|
|
|
+ return eachItem.uid === itemInUploadList.uid
|
|
|
})
|
|
|
this.uploadListForUI.splice(index, 1)
|
|
|
this.refreshListDebounced()
|
|
|
@@ -323,7 +323,7 @@ export default {
|
|
|
(err) => {
|
|
|
if (err.statusText === 'abort') { // 用户取消了上传任务。
|
|
|
const index = this.uploadListForUI.findIndex((eachItem) => {
|
|
|
- eachItem.uid === itemInUploadList.uid
|
|
|
+ return eachItem.uid === itemInUploadList.uid
|
|
|
})
|
|
|
this.uploadListForUI.splice(index, 1)
|
|
|
} else {
|