index.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import Vue from 'vue';
  2. import Router from 'vue-router';
  3. Vue.use(Router);
  4. export default new Router({
  5. mode: 'history',
  6. base: process.env.NODE_ENV === 'development' ? '' : 'liveadmin',
  7. routes: [
  8. {
  9. path: '/',
  10. redirect: '/homeIndex',
  11. },
  12. {
  13. path: '/',
  14. component: () => import('../components/common/Home.vue'),
  15. meta: { title: '自述文件' },
  16. children: [
  17. {
  18. path: '/homeIndex',
  19. component: () => import('../views/homeIndex.vue'),
  20. meta: { title: '系统首页' },
  21. },
  22. // 菜单管理
  23. {
  24. path: '/menu',
  25. component: () => import('../views/menu/index.vue'),
  26. meta: { title: '菜单管理' },
  27. },
  28. // 审核申请书
  29. {
  30. path: '/adminExamine',
  31. component: () => import('../views/adminExamine/index.vue'),
  32. meta: { title: '审核申请书' },
  33. },
  34. {
  35. path: '/adminExamine/detail',
  36. component: () => import('../views/adminExamine/detail.vue'),
  37. meta: { title: '资料审核' },
  38. },
  39. // 专家评分
  40. {
  41. path: '/adminScore',
  42. component: () => import('../views/adminScore/index.vue'),
  43. meta: { title: '专家评分' },
  44. },
  45. {
  46. path: '/adminScore/detail',
  47. component: () => import('../views/adminScore/detail.vue'),
  48. meta: { title: '专家评分查看' },
  49. },
  50. // 专家会审
  51. {
  52. path: '/adminMeet',
  53. component: () => import('../views/adminMeet/index.vue'),
  54. meta: { title: '专家会审' },
  55. },
  56. // 完善资料
  57. {
  58. path: '/adminPerfect',
  59. component: () => import('../views/adminPerfect/index.vue'),
  60. meta: { title: '完善资料' },
  61. },
  62. // 证书发放
  63. {
  64. path: '/adminCate',
  65. component: () => import('../views/adminCate/index.vue'),
  66. meta: { title: '证书发放' },
  67. },
  68. ],
  69. },
  70. {
  71. path: '/login',
  72. component: () => import('../views/Login.vue'),
  73. meta: { title: '登录' },
  74. },
  75. {
  76. path: '*',
  77. redirect: '/404',
  78. },
  79. ],
  80. });