|
|
@@ -87,12 +87,11 @@ export default {
|
|
87
|
87
|
},
|
|
88
|
88
|
methods: {
|
|
89
|
89
|
async loadMorePosts(shouldClear) {
|
|
90
|
|
-
|
|
91
|
90
|
if(!this.keepFetching) return console.warn('Nothing left to fetch...')
|
|
92
|
91
|
|
|
93
|
92
|
const getPosts = async (params, dispatchType) => {
|
|
94
|
93
|
if(!this.type) throw `post type: ${this.type} not found...`
|
|
95
|
|
-
|
|
|
94
|
+ console.log(`Getting more ${this.type} posts`)
|
|
96
|
95
|
// We always grab all pages on hero init so no need to do it here
|
|
97
|
96
|
return this.pType && this.type != 'page' ? await this.$store.dispatch(
|
|
98
|
97
|
`get${dispatchType}${this.pType}`,
|
|
|
@@ -140,8 +139,6 @@ export default {
|
|
140
|
139
|
this._clearHero(this.$store)
|
|
141
|
140
|
try {
|
|
142
|
141
|
const page = await this.getPage(type)
|
|
143
|
|
- console.log('---')
|
|
144
|
|
- console.log(page)
|
|
145
|
142
|
// We always set a hero no matter what
|
|
146
|
143
|
// Because the hero component will deal
|
|
147
|
144
|
// with how to render based on hero.url
|