Browse Source

:recycle: adding back init to created method

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

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

71
     },
71
     },
72
     methods: {
72
     methods: {
73
         clearAllPosts() {
73
         clearAllPosts() {
74
-            const uppercaseType = this.type.toUpperCase() + 's'
74
+            const uppercaseType = this.type.toUpperCase() + 'S'
75
             this.$store.commit(`CLEAR_${uppercaseType}`)
75
             this.$store.commit(`CLEAR_${uppercaseType}`)
76
             this.$store.commit(`${uppercaseType}_LOADED`)
76
             this.$store.commit(`${uppercaseType}_LOADED`)
77
         },
77
         },
180
             this.clearAndInitPostList()
180
             this.clearAndInitPostList()
181
         },
181
         },
182
     },
182
     },
183
+    created() {
184
+        this.clearAndInitPostList()
185
+    }
183
 }
186
 }
184
 </script>
187
 </script>
185
 
188
 

Loading…
Cancel
Save