getters.js 656 B

1234567891011121314151617
  1. const getters = {
  2. isLogin: state => state.common.token,
  3. userInfo: state => state.common.userInfo,
  4. device: state => state.common.systemInfo ? state.common.systemInfo.device : '',
  5. platform: state => state.common.platform,
  6. openId: state => state.common.authInfo.openId,
  7. authInfo: state => state.common.authInfo,
  8. city: state => state.common.city,
  9. appTopButton: state => state.common.appTopButton,
  10. tenantId: state => state.common.tenant.id,
  11. imagePath: state => state.common.tenant.imagePath,
  12. appName: state => state.common.tenant.name,
  13. permission: state => state.common.permission,
  14. approve: state => state.common.approve,
  15. }
  16. export default getters