Просмотр исходного кода

:recycle: adjusting route query

tags/1.0.0^2
J 3 лет назад
Родитель
Сommit
53914532f6
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      vue-theme/src/pages/list.vue

+ 3
- 3
vue-theme/src/pages/list.vue Просмотреть файл

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

Загрузка…
Отмена
Сохранить