getters.js 977 B

1234567891011121314151617181920
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. export default {
  11. token: state => state.app.token,
  12. isLogin: state => !!state.app.token,
  13. backgroundColor: state => state.app.backgroundColor,
  14. userInfo: state => state.app.userInfo || {},
  15. uid:state => state.app.uid,
  16. homeActive: state => state.app.homeActive,
  17. home: state => state.app.home,
  18. cartNum: state => state.indexData.cartNum,
  19. };