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