getters.js 554 B

123456789101112131415
  1. const getters = {
  2. sidebar: state => state.app.sidebar,
  3. size: state => state.app.size,
  4. device: state => state.app.device,
  5. visitedViews: state => state.tagsView.visitedViews,
  6. cachedViews: state => state.tagsView.cachedViews,
  7. token: state => state.user.token,
  8. avatar: state => state.user.avatar,
  9. name: state => state.user.name,
  10. introduction: state => state.user.introduction,
  11. roles: state => state.user.roles,
  12. permissions: state => state.user.permissions,
  13. permission_routes: state => state.permission.routes
  14. }
  15. export default getters