Procházet zdrojové kódy

:recycle: adjusting route query

tags/1.0.0^2
J před 3 roky
rodič
revize
53914532f6
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      vue-theme/src/pages/list.vue

+ 3
- 3
vue-theme/src/pages/list.vue Zobrazit soubor

@@ -63,7 +63,7 @@ export default {
63 63
             return postTypes.includes(this.$route.params.type) ? this.$route.params.type : 'post'
64 64
         },
65 65
         hasSubtype() {
66
-            return this.$route.query.subtype
66
+            return this.$route.query.type
67 67
         },
68 68
         sortBy() {
69 69
             return this.$route.params.sortBy
@@ -154,8 +154,8 @@ export default {
154 154
                     limit: this.shouldLoadAllAtOnce ? -1 : this.perPage,
155 155
                     page: this.page
156 156
                 }
157
-                if(this.subtype) {
158
-                    params.type = this.subtype
157
+                if(this.hasSubtype) {
158
+                    params.type = this.$route.query.type
159 159
                 }
160 160
                 const res = await getPosts(
161 161
                     params,

Načítá se…
Zrušit
Uložit