/*
 * @Author: Zp 应用模块 仓库 store
 * @Desc: 这里是应用层级 主要存储应用级数据 例如导航菜单
 * @Date: 2020-03-11 16:59:43
 * @Last Modified by: Zp
 * @Last Modified time: 2020-04-30 19:42:41
 */

import { getMenuByRouter } from 'libs/tools'
import routers from 'router/routes'

export default {
  state: {
  },
  getters: {
    menuList: (state, getters, rootState) => getMenuByRouter(routers, rootState.user.access),
  },
  mutations: {
  },
  actions: {
  },
  modules: {}
}
