Nuxt/test/fixtures/basic/store/index.js
2017-11-02 18:07:33 +01:00

14 lines
185 B
JavaScript
Executable File

export const state = () => ({
counter: 1,
meta: []
})
export const mutations = {
increment(state) {
state.counter++
},
setMeta(state, meta) {
state.meta = meta
}
}