|
@@ -246,19 +246,18 @@ export default {
|
|
|
})
|
|
})
|
|
|
if (index >= 0) {
|
|
if (index >= 0) {
|
|
|
this.list.splice(index, 1)
|
|
this.list.splice(index, 1)
|
|
|
|
|
+ const newData = data.data.list.map((i) => {
|
|
|
|
|
+ i.fileSize = changeByteUnit(Number(i.fileSize));
|
|
|
|
|
+ return i;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.list = this.list.concat(newData)
|
|
|
|
|
+ if (this.list.length === data.data.total) {
|
|
|
|
|
+ this.hasMoreData = false
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
console.error('在素材列表里没找到要删除的那一项!');
|
|
console.error('在素材列表里没找到要删除的那一项!');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const newData = data.data.list.map((i) => {
|
|
|
|
|
- i.fileSize = changeByteUnit(Number(i.fileSize));
|
|
|
|
|
- return i;
|
|
|
|
|
- });
|
|
|
|
|
- this.list = this.list.concat(newData)
|
|
|
|
|
- if (this.list.length === data.data.total) {
|
|
|
|
|
- this.hasMoreData = false
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
this.isRequestingMoreData = false
|
|
this.isRequestingMoreData = false
|
|
|
this.lastestUsedSearchKey = lastestUsedSearchKey
|
|
this.lastestUsedSearchKey = lastestUsedSearchKey
|
|
|
},
|
|
},
|