Nuxt/examples/vuex-store-modules/store/index.js
2017-10-31 21:43:55 +08:00

10 lines
121 B
JavaScript

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