getters.js 1.4 KB

1234567891011121314151617181920212223242526
  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. };
  20. // export default {
  21. // token: state => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJrYWlmYS5jcm1lYi5uZXQiLCJhdWQiOiJrYWlmYS5jcm1lYi5uZXQiLCJpYXQiOjE1NzcwODM1MzQsIm5iZiI6MTU3NzA4MzUzNCwiZXhwIjoxNTc3MDk0MzM0LCJqdGkiOnsiaWQiOjExMCwidHlwZSI6InVzZXIifX0.U-i1pbdRjyXI1gr79Uq2XBPZ89T8f5Ai9jwrR8woTwE',
  22. // isLogin: state => true,
  23. // backgroundColor: state => state.app.backgroundColor,
  24. // userInfo: state => state.app.userInfo || {}
  25. // };