getters.js 1.1 KB

123456789101112131415161718192021222324252627
  1. const getters = {
  2. openSoket: state => state.settings.openSoket,
  3. sidebar: state => state.app.sidebar,
  4. size: state => state.app.size,
  5. countryList: state => state.app.countryList,
  6. device: state => state.app.device,
  7. visitedViews: state => state.tagsView.visitedViews,
  8. cachedViews: state => state.tagsView.cachedViews,
  9. token: state => state.user.token,
  10. name: state => state.user.name,
  11. roles: state => state.user.roles,
  12. authUserId: state => state.user.authUserId,
  13. userIdentity: state => state.user.userIdentity,
  14. copyUserInfo: state => state.user.copyUserInfo,
  15. permission_routes: state => state.permission.routes,
  16. errorLogs: state => state.errorLog.logs,
  17. initRouter: state => state.permission.initRouter,
  18. routes: state => state.permission.routes,
  19. proxyInfo: state => state.proxy.proxyInfo,
  20. proxyState: state => state.proxy.proxyState,
  21. isChangeProxy: state => state.proxy.isChangeProxy,
  22. shopType: state => state.user.shopType,
  23. brandId: state => state.user.brandId,
  24. socketState: state => state.webSocket.socketState,
  25. messageList: state => state.webSocket.messageList
  26. }
  27. export default getters