getters.js 1006 B

123456789101112131415161718192021222324
  1. export default {
  2. // 应用相关
  3. isPc: (state) => state.app.isPc,
  4. screen: (state) => state.app.screen,
  5. static: (state) => state.app.static,
  6. routePrefix: (state) => state.app.routePrefix,
  7. loginVisiable: (state) => state.app.loginVisiable,
  8. themeName: (state) => state.app.themeName,
  9. screenWidth: (state) => state.app.screenWidth,
  10. showHeader: (state) => state.app.showHeader,
  11. showFooter: (state) => state.app.showFooter,
  12. wxConfig: (state) => state.app.wxConfig,
  13. // 用户相关
  14. userInfo: (state) => state.user.userInfo,
  15. authId: (state) => state.user.userInfo.authId,
  16. accessToken: (state) => state.user.userInfo.accessToken,
  17. clubUserId: (state) => state.user.userInfo.clubUserId,
  18. accountType: (state) => state.user.accountType,
  19. mobile: (state) => state.user.userInfo.mobile,
  20. // 供应商相关
  21. supplierInfo: (state) => state.supplier.supplierInfo,
  22. authUserId: (state) => state.supplier.supplierInfo.authUserId,
  23. appId: (state) => state.supplier.supplierInfo.appId,
  24. }