getters.js 234 B

123456789
  1. const getters = {
  2. token: state => state.user.token,
  3. avatar: state => state.user.avatar,
  4. name: state => state.user.name,
  5. roles: state => state.user.roles,
  6. permissions: state => state.user.permissions
  7. }
  8. export default getters