getters.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. const getters = {
  2. sidebar: state => state.app.sidebar,
  3. device: state => state.app.device,
  4. token: state => state.user.token,
  5. avatar: state => state.user.avatar,
  6. name: state => state.user.name,
  7. username: state => state.user.username,
  8. phone: state => state.user.phone,
  9. role: state => state.user.role,
  10. isOut: state => state.user.isOut,
  11. provinceId: state => state.user.provinceId,
  12. cityId: state => state.user.cityId,
  13. areaId: state => state.user.areaId,
  14. streetId: state => state.user.streetId,
  15. address: state => state.user.address,
  16. interval: state => state.user.interval,
  17. sysQueryConfiguration: state => state.user.sysQueryConfiguration,
  18. sysQueryConfigurationStatus: state => state.user.sysQueryConfigurationStatus,
  19. whiteVisitorType: state => state.user.whiteVisitorType,
  20. tagName: state => state.user.tagName,
  21. isControlEarlyWarning:state=>state.user.isControlEarlyWarning,
  22. adminId:state=>state.user.adminId,
  23. placeType:state=>state.user.placeType,
  24. placeCodeStatus:state=>state.user.placeCodeStatus,
  25. isOpenPrivateArea:state=>state.user.isOpenPrivateArea,
  26. codeType:state=>state.user.codeType,
  27. threeCodeList:state=>state.user.threeCodeList,
  28. cardPhysics:state=>state.user.cardPhysics,
  29. disinfectFlag:state=>state.user.disinfectFlag,
  30. openInOutStatistics: state => state.user.openInOutStatistics,
  31. problemReportFlag:state=>state.user.problemReportFlag,
  32. title:state=>state.user.title,
  33. logo:state=>state.user.logo,
  34. favicon:state=>state.user.favicon,
  35. bg:state=>state.user.bg,
  36. isOpenExam:state=>state.user.isOpenExam,
  37. }
  38. export default getters