소스 검색

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