/*
 * @Descripttion: e
 * @version: w
 * @Author: kangkang
 * @Date: 2020-09-30 21:48:44
 * @LastEditors: kangkang
 * @LastEditTime: 2020-10-24 15:30:56
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: null,
    currentNav: '首页',
    menus: []
  },
  mutations: {
    updateUserInfo: function (state, data) {
      state.userInfo = data
    },
    setCurrentNav: function (state, data) {
      state.currentNav = data
    },
    setMnus: function (state, data) {
      state.menus = data
    }
  }
})
