2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-22 15:30:33 +03:00

chore: lint examples

This commit is contained in:
pimlie
2019-03-11 10:47:44 +01:00
parent 73b98b95ad
commit ae8b4f58fa
9 changed files with 49 additions and 81 deletions
+7 -7
View File
@@ -35,27 +35,27 @@ export default new Vuex.Store({
// GETTERS
getters: {
post (state) {
post(state) {
return state.post
},
publishedPosts (state) {
return state.posts.filter((post) => post.published)
publishedPosts(state) {
return state.posts.filter(post => post.published)
},
publishedPostsCount (state, getters) {
publishedPostsCount(state, getters) {
return getters.publishedPosts.length
}
},
// MUTATIONS
mutations: {
getPost (state, { slug }) {
state.post = state.posts.find((post) => post.slug === slug)
getPost(state, { slug }) {
state.post = state.posts.find(post => post.slug === slug)
}
},
// ACTIONS
actions: {
getPost ({ commit }, payload) {
getPost({ commit }, payload) {
commit('getPost', payload)
}
}