Browse Source

:poop: checking for post type first

tags/0.9.0
J 4 years ago
parent
commit
171b6c3505
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      vue-theme/src/pages/list.vue

+ 1
- 2
vue-theme/src/pages/list.vue View File

@@ -67,13 +67,12 @@ export default {
67 67
     },
68 68
     methods: {
69 69
         loadMorePosts() {
70
+            if(!this.type) return console.warn(`type: ${this.type} not found...`)
70 71
             console.warn(`loading more ${this.type} posts...`)
71 72
             this.page++
72 73
             this.getPosts({ clear: false })
73 74
         },
74 75
         async getPosts({ clear }) {
75
-            
76
-            console.log('gp:', clear)
77 76
             // Sorting
78 77
             let sort = this.sortBy
79 78
                 ? this.sortBy

Loading…
Cancel
Save