Nuxt/examples/vuex-store-modules/store/index.js

10 lines
121 B
JavaScript
Raw Normal View History

export const state = () => ({
counter: 0
})
2016-12-26 14:55:00 +00:00
export const mutations = {
2017-10-31 13:43:55 +00:00
increment(state) {
2016-12-26 14:55:00 +00:00
state.counter++
}
}