|
@@ -127,7 +127,12 @@ export default {
|
|
|
},
|
|
|
async setSort() {
|
|
|
try {
|
|
|
- await photoAlbumUpdate(this.list.map((item, index) => ({
|
|
|
+ const times = Object.values(this.times)
|
|
|
+ let list = []
|
|
|
+ for (const item of times) {
|
|
|
+ list = list.concat(item.list)
|
|
|
+ }
|
|
|
+ await photoAlbumUpdate(list.map((item, index) => ({
|
|
|
...item,
|
|
|
order: index
|
|
|
})))
|