getters.js 278 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. adminType: state => state.user.adminType
  8. }
  9. export default getters