Browse Source

默认排序

natasha 1 week ago
parent
commit
cf10c6c525
1 changed files with 3 additions and 1 deletions
  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) => {