index.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import Layout from '@/page/index/'
  2. export default [{
  3. path: '/wel',
  4. component: Layout,
  5. redirect: '/wel/index',
  6. children: [{
  7. path: 'index',
  8. name: '首页',
  9. meta: {
  10. i18n: 'dashboard',
  11. keepAlive: true,
  12. isAuth: false,
  13. },
  14. component: () =>
  15. import( /* webpackChunkName: "views" */ '@/views/wel/index')
  16. }, {
  17. path: 'dashboard',
  18. name: '控制台',
  19. meta: {
  20. i18n: 'dashboard',
  21. menu: false,
  22. isAuth: false,
  23. },
  24. component: () =>
  25. import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  26. }]
  27. }, {
  28. // 新增:公告页面路由配置
  29. path: '/announcement',
  30. component: Layout,
  31. redirect: '/announcement/index',
  32. children: [{
  33. path: 'index',
  34. name: '公告管理',
  35. meta: {
  36. keepAlive: true,
  37. },
  38. component: () => import( /* webpackChunkName: "views" */ '@/views/announcement/index')
  39. }]
  40. }, {
  41. path: '/forecast',
  42. component: Layout,
  43. redirect: '/forecast/index',
  44. children: [{
  45. path: 'index',
  46. name: '预测管理',
  47. meta: {
  48. keepAlive: true,
  49. isAuth: false
  50. },
  51. component: () => import( /* webpackChunkName: "views" */ '@/views/forecast/index')
  52. }]
  53. }, {
  54. path: '/dict-horizontal',
  55. component: Layout,
  56. redirect: '/dict-horizontal/index',
  57. children: [{
  58. path: 'index',
  59. name: '字典管理',
  60. meta: {
  61. i18n: 'dict'
  62. },
  63. component: () =>
  64. import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
  65. }]
  66. }, {
  67. path: '/dict-vertical',
  68. component: Layout,
  69. redirect: '/dict-vertical/index',
  70. children: [{
  71. path: 'index',
  72. name: '字典管理',
  73. meta: {
  74. i18n: 'dict'
  75. },
  76. component: () =>
  77. import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
  78. }]
  79. }, {
  80. path: '/info',
  81. component: Layout,
  82. redirect: '/info/index',
  83. children: [{
  84. path: 'index',
  85. name: '个人信息',
  86. meta: {
  87. i18n: 'info'
  88. },
  89. component: () => import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
  90. }]
  91. },
  92. ]