index.js 372 B

123456789101112131415161718
  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. import Blabla from './modules/blabla'
  7. // https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
  8. Vue.use(Vuex)
  9. export default new Vuex.Store({
  10. modules: {
  11. Common,
  12. User,
  13. Search,
  14. Blabla
  15. }
  16. })