const getters = {
  sessionId: state => state.user.sessionId,
  userId: state => state.user.id,
  name: state => state.user.name,
  userName: state => state.user.userName,
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  publicKey: state => state.user.publicKey,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.accessToken,
  avatar: state => state.user.avatar,
  //   introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,
  enableLayout: state => state.app.enableLayout
}
export default getters
