routes.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. export default [
  2. {
  3. path: '/user',
  4. layout: false,
  5. routes: [
  6. {
  7. path: '/user',
  8. routes: [
  9. {
  10. name: 'login',
  11. path: '/user/login',
  12. component: './user/Login',
  13. },
  14. ],
  15. },
  16. {
  17. component: './404',
  18. },
  19. ],
  20. },
  21. {
  22. path: '/QuestionBankManage',
  23. name: '题库',
  24. icon: 'smile',
  25. access: 'canAdmin',
  26. routes: [
  27. {
  28. path: '/QuestionBankManage/question-bank',
  29. name: '题库名称',
  30. icon: 'smile',
  31. component: './QuestionBankManage/QuestionBank/index',
  32. },
  33. {
  34. path: '/QuestionBankManage/question-card',
  35. name: '题卡',
  36. icon: 'smile',
  37. component: './QuestionBankManage/QuestionCard/index',
  38. },
  39. {
  40. path: '/QuestionBankManage/question-book',
  41. name: '教材',
  42. icon: 'smile',
  43. component: './QuestionBankManage/QuestionBook/index',
  44. },
  45. {
  46. path: '/QuestionBankManage/opration-card',
  47. name: '创建题卡',
  48. icon: 'smile',
  49. hideInMenu: true,
  50. component: './QuestionBankManage',
  51. },
  52. {
  53. path: '/QuestionBankManage/BankManage',
  54. name: '题库管理',
  55. icon: 'smile',
  56. component: './QuestionBankManage/BankManage/index',
  57. },
  58. {
  59. path: '/QuestionBankManage/CategoryName',
  60. name: '分类名称',
  61. icon: 'smile',
  62. component: './QuestionBankManage/CategoryName/index',
  63. },
  64. // {
  65. // path: '/QuestionBankManage/Ability',
  66. // name: '能力点',
  67. // icon: 'smile',
  68. // component: './Ability',
  69. // },
  70. {
  71. component: './404',
  72. },
  73. ],
  74. },
  75. {
  76. path: '/BaseSetting',
  77. name: '基本配置',
  78. icon: 'smile',
  79. access: 'canAdmin',
  80. routes: [
  81. {
  82. path: '/BaseSetting/SchoolSection',
  83. name: '学段设置',
  84. icon: 'smile',
  85. component: './BaseStting/SchoolSection/index',
  86. },
  87. ]
  88. },
  89. {
  90. path: '/',
  91. redirect: '/QuestionBankManage/question-bank',
  92. },
  93. {
  94. component: './404',
  95. },
  96. ];