index.js 290 B

1234567891011121314151617181920
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. Vue.use(Vuex)
  4. export default new Vuex.Store({
  5. state: {
  6. },
  7. getters: {
  8. },
  9. mutations: {
  10. setData(state,data){
  11. state.storefront=data//将接收到的数据放到storefront里面
  12. }
  13. },
  14. actions: {
  15. },
  16. modules: {
  17. }
  18. })