Ver código fonte

:recycle: adjusting route query

tags/1.0.0^2
J 3 anos atrás
pai
commit
53914532f6
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      vue-theme/src/pages/list.vue

+ 3
- 3
vue-theme/src/pages/list.vue Ver arquivo

@@ -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,

Carregando…
Cancelar
Salvar