Nuxt/test/fixtures/basic/store/index.js

10 lines
122 B
JavaScript
Raw Normal View History

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