index.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import Vue from 'vue';
  2. import Vuex from 'vuex';
  3. import classes from '@frame/store/classes';
  4. import dept from '@frame/store/dept';
  5. import location from '@frame/store/location';
  6. import bedroom from '@frame/store/bedroom';
  7. import director from '@frame/store/director';
  8. import student from '@frame/store/student';
  9. import task from '@frame/store/task';
  10. import subject from '@frame/store/subject';
  11. import question from '@frame/store/question';
  12. import questionnaire from '@frame/store/questionnaire';
  13. import teacher from '@frame/store/teacher';
  14. import trainplan from '@frame/store/trainplan';
  15. import duty from '@frame/store/duty';
  16. import school from '@frame/store/school';
  17. import schPlan from '@frame/store/sch-plan';
  18. import teaPlan from '@frame/store/tea-plan';
  19. import lesson from '@frame/store/lesson';
  20. import trainTemplate from '@frame/store/train-template';
  21. import leave from '@frame/store/leave';
  22. import nation from '@frame/store/nation';
  23. import completion from '@frame/store/question-completion';
  24. import termquest from '@frame/store/termquest';
  25. import dirPlan from '@frame/store/dir-plan';
  26. import login from '@frame/store/login';
  27. import * as ustate from '@frame/store/user/state';
  28. import * as umutations from '@frame/store/user/mutations';
  29. Vue.use(Vuex);
  30. export default new Vuex.Store({
  31. modules: {
  32. dept,
  33. classes,
  34. location,
  35. bedroom,
  36. director,
  37. student,
  38. task,
  39. subject,
  40. question,
  41. questionnaire,
  42. teacher,
  43. trainplan,
  44. duty,
  45. schPlan,
  46. school,
  47. teaPlan,
  48. lesson,
  49. nation,
  50. completion,
  51. termquest,
  52. login,
  53. dirPlan,
  54. leave,
  55. trainTemplate,
  56. },
  57. state: { ...ustate },
  58. mutations: { ...umutations },
  59. actions: {},
  60. });