Sfoglia il codice sorgente

:bug: adding back getPost params

tags/1.0.0^2
J 3 anni fa
parent
commit
eedf777e89
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      vue-theme/src/pages/list.vue

+ 3
- 2
vue-theme/src/pages/list.vue Vedi File

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

Loading…
Annulla
Salva