index.js 230 B

123456789101112
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import getters from "./getters.js"
  4. import product from "@/store/modules/product.js"
  5. Vue.use(Vuex)
  6. const store=new Vuex.Store({
  7. modules:{
  8. product
  9. },
  10. getters
  11. })
  12. export default store