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

8 lines
112 B
JavaScript
Raw Normal View History

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