natasha 1 tydzień temu
rodzic
commit
cf10c6c525
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/views/search/searchDetail.vue

+ 3 - 1
src/views/search/searchDetail.vue

@@ -300,7 +300,9 @@ export default {
         only_my_bought: this.selectIndex,
         study_phase: this.gradeIndex,
         release_year: this.yearIndex,
-        order_bys: orderObj ? [orderObj] : [],
+        order_bys: orderObj
+          ? [orderObj]
+          : [{ name: "releaseDate", asc: false }],
       };
       getLogin(MethodName, data)
         .then((res) => {