getters.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-10-14 17:17:53
  4. * @LastEditTime: 2022-02-28 15:25:48
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \Foshan4A\src\store\getters.js
  8. */
  9. const getters = {
  10. sidebar: state => state.app.sidebar,
  11. device: state => state.app.device,
  12. token: state => state.user.token,
  13. UserId: state => state.user.UserId,
  14. UserType: state => state.user.UserType,
  15. avatar: state => state.user.avatar,
  16. name: state => state.user.name,
  17. roles: state => state.user.roles,
  18. firstLogin: state => state.user.firstLogin,
  19. dialog: state => state.app.dialog,
  20. pwdflag: state => state.app.pwdflag,
  21. outflag: state => state.app.outflag,
  22. outcheck: state => state.app.outcheck,
  23. visitedViews: state => state.tagsView.visitedViews,
  24. cachedViews: state => state.tagsView.cachedViews,
  25. systemSet: state => state.app.systemSet,
  26. errorNum: state => state.app.errorNum,
  27. authArrs: state => state.auth.authArrs,
  28. authList: state => state.auth.authList,
  29. authId: state => state.auth.authId,
  30. authMsg: state => state.auth.authMsg,
  31. userRole: state => state.app.OpenRole,
  32. permission_routes: state => state.permission.routes
  33. }
  34. export default getters