Nuxt/examples/vuex-store-modules/store/index.js
2017-01-15 18:51:27 +01:00

8 lines
112 B
JavaScript

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