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

15 lines
183 B
JavaScript
Raw Normal View History

import Vuex from 'vuex'
const store = new Vuex.Store({
state: {
counter: 0
},
mutations: {
increment (state) {
state.counter++
}
}
})
export default store