//储存一些特殊参数
const state = {
  //全局控制底部选项导航显示的状态
  navbarShow: false,
  navbarType: 1, //1首页2消息3购物车4个人中心
}

const mutations = {
  //全局控制底部选项导航显示的状态
  TOOGLE_NAVBAR_SHOW: (state, data) => {
    //boole值
    state.navbarShow = data
  },
  //全局控制底部选项活跃状态
  TOOGLE_NAVBAR_TYPE: (state, data) => {
    //String
    state.navbarType = data
  },

}

const actions = {}

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