index.js 322 B

12345678910111213141516
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import Common from './modules/common'
  4. import User from './modules/user'
  5. import Search from './modules/search'
  6. // https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
  7. Vue.use(Vuex)
  8. export default new Vuex.Store({
  9. modules: {
  10. Common,
  11. User,
  12. Search
  13. }
  14. })