|
|
@@ -135,7 +135,7 @@ export default {
|
|
135
|
135
|
this.checkAndSetHero(this.type)
|
|
136
|
136
|
},
|
|
137
|
137
|
$route(to, from) {
|
|
138
|
|
- let type = convertTitleCase(this.type)
|
|
|
138
|
+ let type = convertTitleCase(this.type) +'s'
|
|
139
|
139
|
let sort = to.path
|
|
140
|
140
|
.split('/')
|
|
141
|
141
|
.filter(p => p)
|
|
|
@@ -155,7 +155,7 @@ export default {
|
|
155
|
155
|
}
|
|
156
|
156
|
},
|
|
157
|
157
|
created() {
|
|
158
|
|
- let type = convertTitleCase(this.type)
|
|
|
158
|
+ let type = convertTitleCase(this.type) + 's'
|
|
159
|
159
|
this.checkAndSetHero(this.type)
|
|
160
|
160
|
|
|
161
|
161
|
if (!this[`all${type}Loaded`]) this.getPosts()
|