const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  language: state => state.app.language,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  uid: state => state.user.uid,
  loginName: state => state.user.loginName,
  routers: state => state.user.routers,
  menus: state => state.user.menus,

  permissions: state => state.user.permissions,
  permissionsFirstSysOrigin: state => state.user.permissions.firstSysOrigin,
  buttonPermissions: state => state.user.permissions.buttonPermissions,
  permissionsSysOriginPlatforms: state => state.user.permissions.sysOriginPlatformRoots,
  permissionsSysOriginPlatformAlls: state => state.user.permissions.sysOriginPlatforms,
  allSysOriginPermissions: state => state.user.permissions.allSysOriginPermissions,
  dashboard: state => state.user.dashboard
}
export default getters
