getters.js 1.4 KB

123456789101112131415161718192021222324252627
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2023 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. activityTab: state => state.app.activityTab,
  20. };
  21. // export default {
  22. // token: state => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJrYWlmYS5jcm1lYi5uZXQiLCJhdWQiOiJrYWlmYS5jcm1lYi5uZXQiLCJpYXQiOjE1NzcwODM1MzQsIm5iZiI6MTU3NzA4MzUzNCwiZXhwIjoxNTc3MDk0MzM0LCJqdGkiOnsiaWQiOjExMCwidHlwZSI6InVzZXIifX0.U-i1pbdRjyXI1gr79Uq2XBPZ89T8f5Ai9jwrR8woTwE',
  23. // isLogin: state => true,
  24. // backgroundColor: state => state.app.backgroundColor,
  25. // userInfo: state => state.app.userInfo || {}
  26. // };