index.js 674 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import goodsclass from './modules/goodsclass'// 商品分类
  4. import goodsdetail from './modules/goodsdetail'// 商品详情
  5. import pointsgoods from './modules/pointsgoods'// 积分商品
  6. import home from './modules/home'// 首页
  7. import homesearch from './modules/homesearch'// 搜索
  8. import homecart from './modules/homecart'// 购物车
  9. import member from './modules/member'// 用户信息
  10. import config from './modules/config'// 配置信息
  11. Vue.use(Vuex)
  12. export default new Vuex.Store({
  13. modules: {
  14. home,
  15. homesearch,
  16. homecart,
  17. goodsclass,
  18. goodsdetail,
  19. pointsgoods,
  20. member,
  21. config
  22. }
  23. })