index.js 704 B

1234567891011121314151617181920212223242526272829303132
  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. Vue.use(Vuex)
  14. const $store = new Vuex.Store({
  15. modules: {
  16. app,
  17. cart,
  18. device,
  19. address,
  20. article,
  21. choosed,
  22. shopcar,
  23. message,
  24. userinfo,
  25. gift
  26. },
  27. })
  28. export default $store