Nuxt/examples/vuex-store/store/index.js
2017-01-26 10:33:54 +01:00

15 lines
183 B
JavaScript

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