|
|
@@ -127,7 +127,7 @@ export default {
|
|
127
|
127
|
}
|
|
128
|
128
|
|
|
129
|
129
|
let res = null
|
|
130
|
|
- if(this.pType && !ignore.includes(dispatchAction)) {
|
|
|
130
|
+ if(this.pType && !ignore.includes(dispatchAction) && this.keepFetching) {
|
|
131
|
131
|
res = await this.$store.dispatch(dispatchAction, params)
|
|
132
|
132
|
}
|
|
133
|
133
|
|
|
|
@@ -198,10 +198,7 @@ export default {
|
|
198
|
198
|
this.loadMorePosts()
|
|
199
|
199
|
},
|
|
200
|
200
|
routeInfoFromPath(fullPath) {
|
|
201
|
|
- console.log(fullPath)
|
|
202
|
|
- console.log(fullPath.split('/'))
|
|
203
|
|
- const [ potentialType, potentialSort ] = fullPath.split('/')
|
|
204
|
|
- console.log(potentialType)
|
|
|
201
|
+ const [ potentialType, potentialSort ] = fullPath.split('/').filter(e => e)
|
|
205
|
202
|
return {
|
|
206
|
203
|
sortBy: Object.values(sortTypes).includes(potentialSort) ? potentialSort : null,
|
|
207
|
204
|
type: postTypes.includes(potentialType) ? potentialType : null
|
|
|
@@ -237,6 +234,7 @@ export default {
|
|
237
|
234
|
) {
|
|
238
|
235
|
const ignore = ['event', 'exhibition', 'post']
|
|
239
|
236
|
if(ignore.includes(this.type)) return
|
|
|
237
|
+ console.log('init from $route watch...')
|
|
240
|
238
|
this.clearAndInitPostList()
|
|
241
|
239
|
}
|
|
242
|
240
|
}
|