瀏覽代碼

:poop: not using exhibition or event sort

tags/0.9.0
J 4 年之前
父節點
當前提交
da0892ebd1
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      vue-theme/src/pages/list.vue

+ 3
- 3
vue-theme/src/pages/list.vue 查看文件

80
                       .filter(p => p)
80
                       .filter(p => p)
81
                       .pop()
81
                       .pop()
82
 
82
 
83
-            let dispatchParams = {
84
-                sortType: ['event', 'exhibition'].includes(this.type) ? sortTypes.currentAndUpcoming : sort,
83
+            const dispatchParams = {
84
+                sortType: sort,
85
                 params: {
85
                 params: {
86
                     limit: this.perPage,
86
                     limit: this.perPage,
87
                     page: this.page
87
                     page: this.page
88
                 }
88
                 }
89
             }
89
             }
90
 
90
 
91
-            let dispatchAction = clear ? `getAll${this.pType}` : `getMore${this.pType}`
91
+            const dispatchAction = clear ? `getAll${this.pType}` : `getMore${this.pType}`
92
 
92
 
93
             const res = await this.$store.dispatch(dispatchAction, dispatchParams)
93
             const res = await this.$store.dispatch(dispatchAction, dispatchParams)
94
 
94
 

Loading…
取消
儲存