瀏覽代碼

:bug: adding back getPost params

tags/1.0.0^2
J 3 年之前
父節點
當前提交
eedf777e89
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      vue-theme/src/pages/list.vue

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

5
         header.center.t-up
5
         header.center.t-up
6
             .title.f-row
6
             .title.f-row
7
                 h3(v-if="!isSearch") {{ type }}s 
7
                 h3(v-if="!isSearch") {{ type }}s 
8
-                h3(v-else-if="!subtype") {{ type }}: {{ subtype }}s 
8
+                h3(v-else-if="!hasSubtype") {{ type }}: {{ $route.query.type }}s 
9
                 h3(v-else-if="isSearch") Search results for: {{$route.query.s }} 
9
                 h3(v-else-if="isSearch") Search results for: {{$route.query.s }} 
10
                 h3(v-else) {{ type }}s 
10
                 h3(v-else) {{ type }}s 
11
                 span(v-if="sortBy")
11
                 span(v-if="sortBy")
62
         type() {
62
         type() {
63
             return postTypes.includes(this.$route.params.type) ? this.$route.params.type : 'post'
63
             return postTypes.includes(this.$route.params.type) ? this.$route.params.type : 'post'
64
         },
64
         },
65
-        subtype() {
65
+        hasSubtype() {
66
             return this.$route.query.subtype
66
             return this.$route.query.subtype
67
         },
67
         },
68
         sortBy() {
68
         sortBy() {
158
                     params.type = this.subtype
158
                     params.type = this.subtype
159
                 }
159
                 }
160
                 const res = await getPosts(
160
                 const res = await getPosts(
161
+                    params,
161
                     this.shouldLoadAllAtOnce ? 'All' : 'More'
162
                     this.shouldLoadAllAtOnce ? 'All' : 'More'
162
                 )
163
                 )
163
                 this.loadingFetched = false
164
                 this.loadingFetched = false

Loading…
取消
儲存