const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.user_info.avatar,
  username: state => state.user.user_info.username,
  nickname: state => state.user.user_info.nickname,
  user_id: state => state.user.user_info.user_id,
  user_post: state => state.user.user_info.user_post,
  user_dept: state => state.user.user_info.user_dept,
  user_role: state => state.user.user_info.user_role,
  user_menu: state => state.user.user_menu,
  user_perm: state => state.user.user_perm,
  permission_routes: state => state.permission.routes,
  permission_add_routes: state => state.permission.addRoutes
}
export default getters
