import Vue from 'vue' //引入 Vue import Vuex from 'vuex' //引入 Vuex import app from '@/store/modules/app' import cart from '@/store/modules/cart.js' import device from '@/store/modules/device' import address from '@/store/modules/address' import article from '@/store/modules/article' import choosed from '@/store/modules/choosed' import shopcar from '@/store/modules/shopcar' import message from '@/store/modules/message' import userinfo from '@/store/modules/userinfo' import gift from "./modules/gift.js" import singup from "./modules/singup.js" Vue.use(Vuex) const $store = new Vuex.Store({ modules: { app, cart, device, address, article, choosed, shopcar, message, userinfo, gift, singup }, }) export default $store