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

10 lines
122 B
JavaScript
Raw Normal View History

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