Nuxt/examples/vuex-store/store/index.js
2017-05-21 02:03:11 +02:00

15 lines
202 B
JavaScript

import Vuex from 'vuex'
import mutations from './mutations'
const createStore = () => {
return new Vuex.Store({
state: {
counter: 0
},
mutations
})
}
export default createStore