zengyicheng 1 rok temu
rodzic
commit
6bf7f73a86
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/views/test/index.vue

+ 6 - 2
src/views/test/index.vue

@@ -69,12 +69,12 @@ export default {
       this.page = 1
       this.groupA = g
       this.typeCheck = t
-      this.getCourse(true,false)
+      this.getCourse(true, false)
     },
     onRefresh() {
       this.page = 1
       this.finished = false
-      this.getCourse(true,false)
+      this.getCourse(true, false)
     },
     onRefresh1() {
       this.page = 1
@@ -145,7 +145,11 @@ export default {
               el.array.push(el2)
             }
           })
+          el.array.sort(function (a, b) {
+            return new Date(b.createTime) - new Date(a.createTime)
+          })
         })
+
         this.zoneClass = [...this.zoneClass, ...res[0]]
       }
       this.$emit('update:list', this.zoneClass)