浏览代码

Merge branch '07/06musicArchives' into test

wolyshaw 4 年之前
父节点
当前提交
86704af501
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/resetTeaming/components/training-photos/index.vue

+ 6 - 1
src/views/resetTeaming/components/training-photos/index.vue

@@ -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
         })))