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

14 lines
185 B
JavaScript
Raw Normal View History

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