import Vue from 'vue'
import vuex from 'vuex'
import menu from '../util/menuList'
import mutations from './mutations'
import actions from './actions'
Vue.use(vuex);

export default new vuex.Store({
  state:{
    show:false,
    userName:'',
    token:'',
    mainLoad:true,
    menuList:menu,
    menuType:false,
    nowTab:'first',
    openedTab:[
      {
        value:'首页',
        routerName:'first',
        name:'first',
        delNo:true,
        path:'/index'
      }
    ],
  },
  mutations,
  actions
})
