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,
  topbarRouters:state => state.permission.topbarRouters,
  token: state => state.user.token,
  username: state => state.user.username,
  roles: state => state.user.roles,
  // resource: state => state.user.resource,
  buttons: state => state.user.buttons,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,
}
export default getters
