/**
 * *状态管理 State
 */

import Vue from "vue";
import Vuex from "vuex";
import getters from "./getters";
import mutations from "./mutations";
import actions from "./actions";
Vue.use(Vuex);

const state = {
  routeType: 0,
  saveRoute: [
    { leftCom: "leftInfo", activeSubmenu: [], activeMenuItem: "" },
  ],
  isFirstLogin:false,
  loading:false,
  isShowRightNav:false,
  adminInfo: {
    manager_access_token: '',
    role_id: null, 
    nickname: '',
    mobile:'',
    name:'',
    honor_name:'',
    is_administrators:null,
  },
};

export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
});
