import Vue from 'vue' import Vuex from 'vuex' import User from './modules/user' // https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart Vue.use(Vuex) export default new Vuex.Store({ modules: { User } })