1
0
mirror of https://github.com/nuxt/nuxt.git synced 2024-12-20 03:07:13 +00:00
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++
}
}