Nuxt/examples/vuex-store-2/store/index.js
2016-12-26 15:55:00 +01:00

8 lines
112 B
JavaScript

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