getters.js 1.4 KB

123456789101112131415161718192021222324252627
  1. const getters = {
  2. sidebar: state => state.app.sidebar,
  3. device: state => state.app.device,
  4. token: state => state.user.token,
  5. avatar: state => state.user.avatar,
  6. name: state => state.user.name,
  7. visitedViews: state => state.tagsView.visitedViews,
  8. cachedViews: state => state.tagsView.cachedViews,
  9. getScheduleData: state => state.schoolTimetable.getScheduleData,
  10. getScheduleDataLength: state => state.schoolTimetable.getScheduleDataLength,
  11. getScheduleWareData: state => state.schoolTimetable.getScheduleWareData,
  12. getBlockData: state => state.dashboard.getBlockData,
  13. getBlockRowData: state => state.dashboard.getBlockRowData,
  14. getRowItemData: state => state.dashboard.getRowItemData,
  15. getTempateData: state => state.dashboard.getTempateData,
  16. getCategoryData: state => state.categoryList.getCategoryData,
  17. getCategoryDataLength: state => state.categoryList.getCategoryDataLength,
  18. getCategoryRelationData: state => state.categoryList.getCategoryRelationData,
  19. getTopicData: state => state.topicList.getTopicData,
  20. getRelationData: state => state.topicList.getRelationData,
  21. getCourseData: state => state.courseList.getCourseData,
  22. getMemberData: state => state.memberList.getMemberData,
  23. getMemberOrderData: state => state.memberList.getMemberOrderData,
  24. getMemberOrderDataLength: state => state.memberList.getMemberOrderDataLength,
  25. getMemberAuthData: state => state.memberList.getMemberAuthData
  26. }
  27. export default getters