健康同学微信公众号h5项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 line
2.4KB

  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. export const constantRouterMap = [
  6. {
  7. path: '/',
  8. component: () => import('@/views/layouts/index'),
  9. redirect: '/Tabbar',
  10. meta: {
  11. title: '成长',
  12. keepAlive: false
  13. },
  14. children: [
  15. {
  16. path: '/Tabbar',
  17. name: 'Index',
  18. component: () => import('@/views/Tabbar.vue'),
  19. children: [
  20. {
  21. path: '/index',
  22. name: 'Development',
  23. component: () => import('@/views/development/index'),
  24. meta: { title: '成长', keepAlive: false }
  25. },
  26. {
  27. path: '/today',
  28. name: 'Today',
  29. component: () => import('@/views/today/index'),
  30. meta: { title: '今日', keepAlive: false }
  31. },
  32. {
  33. path: '/insight',
  34. name: 'Insight',
  35. component: () => import('@/views/insight/index'),
  36. meta: { title: '洞悉', keepAlive: false }
  37. },
  38. {
  39. path: '/optimize',
  40. name: 'Optimize',
  41. component: () => import('@/views/optimize/index'),
  42. meta: { title: '优化', keepAlive: false }
  43. },
  44. {
  45. path: '/myself',
  46. name: 'Myself',
  47. component: () => import('@/views/myself/index'),
  48. meta: { title: '我的', keepAlive: false }
  49. }
  50. ]
  51. },
  52. {
  53. path: '/planDescription',
  54. name: 'planDescription',
  55. component: () => import('@/views/development/planDescription'),
  56. meta: { title: '计划说明', keepAlive: false }
  57. },
  58. {
  59. path: '/taskDetail',
  60. name: 'taskDetail',
  61. component: () => import('@/views/development/taskDetail'),
  62. meta: { title: '任务详情', keepAlive: false }
  63. },
  64. {
  65. path: '/familyNumber',
  66. name: 'familyNumber',
  67. component: () => import('@/views/myself/familyNumber'),
  68. meta: { title: '亲情号码', keepAlive: false }
  69. },
  70. {
  71. path: '/changeFamilyNumber',
  72. name: 'changeFamilyNumber',
  73. component: () => import('@/views/myself/changeFamilyNumber'),
  74. meta: { title: '修改亲情号码', keepAlive: false }
  75. },
  76. {
  77. path: '/addFamilyNumber',
  78. name: 'addFamilyNumber',
  79. component: () => import('@/views/myself/addFamilyNumber'),
  80. meta: { title: '增加亲情号码', keepAlive: false }
  81. }
  82. ]
  83. }
  84. ];