Nuxt/examples/vuex-store/store/index.js
2019-02-01 16:32:41 +03:30

10 lines
121 B
JavaScript

export const state = () => ({
counter: 0
})
export const mutations = {
increment(state) {
state.counter++
}
}