index.js 755 B

12345678910111213141516171819202122232425262728293031323334
  1. import Vue from 'vue' //引入 Vue
  2. import Vuex from 'vuex' //引入 Vuex
  3. import app from '@/store/modules/app'
  4. import cart from '@/store/modules/cart.js'
  5. import device from '@/store/modules/device'
  6. import address from '@/store/modules/address'
  7. import article from '@/store/modules/article'
  8. import choosed from '@/store/modules/choosed'
  9. import shopcar from '@/store/modules/shopcar'
  10. import message from '@/store/modules/message'
  11. import userinfo from '@/store/modules/userinfo'
  12. import gift from "./modules/gift.js"
  13. import singup from "./modules/singup.js"
  14. Vue.use(Vuex)
  15. const $store = new Vuex.Store({
  16. modules: {
  17. app,
  18. cart,
  19. device,
  20. address,
  21. article,
  22. choosed,
  23. shopcar,
  24. message,
  25. userinfo,
  26. gift,
  27. singup
  28. },
  29. })
  30. export default $store