Nuxt/test/fixtures/basic/store/index.js
2018-02-27 00:18:36 +03:30

14 lines
185 B
JavaScript

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