Nuxt/test/fixtures/basic/store/index.js

14 lines
187 B
JavaScript
Raw Normal View History

export const state = () => ({
2017-11-02 17:07:33 +00:00
counter: 1,
meta: []
})
export const mutations = {
increment (state) {
state.counter++
2017-11-02 17:07:33 +00:00
},
setMeta (state, meta) {
2017-11-02 17:07:33 +00:00
state.meta = meta
}
}