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

14 lines
358 B
JavaScript
Raw Normal View History

export const state = () => ({
2017-03-25 22:04:34 +00:00
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.'
]
})
2017-03-25 22:04:34 +00:00
export const getters = {
2017-10-31 13:43:55 +00:00
get(state) {
2017-03-25 22:04:34 +00:00
return state.list
}
}