index.js 478 B

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