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