const alarm = {
    namespaced: true,
  state: {
        index: 0, //刷新数据的index 递增刷新
        spaceNameObj: null, //对象空间的名称字典
        spaceCodeObj: null //对象类空间字典对象
  },
  getters: {
      index: state => state.index,
        spaceNameObj: state => state.spaceNameObj,
        spaceCodeObj: state => state.spaceCodeObj
  },
  mutations: {
    //   刷新index
      ADD_INDEX(state) {
        state.index = state.index + 1 ;
      },
    //   空间名称dict
      SPACE_NAME_OBJ(state, spaceNameObj ){
          state.spaceNameObj = spaceNameObj
      },
    //   空间code值dict
      SPACE_CODE_OBJ(state, spaceCodeObj) {
          state.spaceCodeObj = spaceCodeObj
      }
  }
}
export default alarm;