Nuxt/examples/vuex-store-modules/store/articles/comments.js

20 lines
435 B
JavaScript
Raw Normal View History

2017-03-25 22:04:34 +00:00
export const state = {
list: [
'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
'Lorem ipsum dolor sit amet, consetetur sadipscing elit.',
'Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'
]
}
export const mutations = {
add (state, title) {
state.list.push(title)
}
}
export const getters = {
get (state) {
return state.list
}
}