const state = {
  selectFoods: [], // 购物车数据
  placeNum: '' // 桌号
}

const getters = {
  selectFoods (state) {
    return state.selectFoods
  },
  placeNum (state) {
    return state.placeNum
  }
}

const mutations = {
  UPDATE_SELECTFOODS (state, value) {
    state.selectFoods = value
  },
  UPDATE_PLACENUM (state, value) {
    state.placeNum = value
  }
}

export default {
  namespaced: true,
  state,
  getters,
  mutations
}
