Browse Source

默认排序

natasha 1 tuần trước cách đây
mục cha
commit
cf10c6c525
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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) => {