const state = {
  isMerchant: false, //是否是经营者还是摊铺 不是就是为false
  marketList: [], //经营的市场
  storeList: [], //经营的店铺
  marketId: "",
  shopId: "",
};

// actions
const actions = {};

// mutations
const mutations = {
  setState(state, data) {
    console.log(data, "传过来的数据");

    state.isMerchant = data.isMerchant;
    state.marketList = data.marketList;
    state.storeList = data.storeList;
    state.marketId = data.marketId;
    state.shopId = data.shopId;
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
