const getters = {
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  nickName: state => state.user.nickName,
  loginIdentity: state => state.user.loginIdentity,
  userInfo: state => state.user.userInfo,
  userId: state => state.user.userId
}
export default getters
