routes.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. export default [
  2. {
  3. path: '/',
  4. redirect: 'index',
  5. component: () => import('@/layout/BasicLayout.vue'),
  6. children: [
  7. {
  8. path: 'index',
  9. name: 'Index',
  10. redirect: 'index/home',
  11. meta: { title: '首页' },
  12. component: () => import('@/views/home/index.vue'),
  13. children: [
  14. {
  15. path: 'home',
  16. name: 'Home',
  17. meta: { title: 'AI搜索' },
  18. component: () => import('@/views/home/home.vue'),
  19. },
  20. {
  21. path: 'newDocument',
  22. name: 'NewDocument',
  23. meta: { title: 'ai文档' },
  24. component: () => import('@/views/wwzx/newDocument.vue'),
  25. },
  26. {
  27. path: 'znxz',
  28. name: 'Znxz',
  29. meta: { title: '用地推荐' },
  30. component: () => import('@/views/znxz/index.vue'),
  31. },
  32. {
  33. path: 'gdfx',
  34. name: 'Gdfx',
  35. meta: { title: '供地分析' },
  36. component: () => import('@/views/gdfx/index.vue'),
  37. },
  38. {
  39. path: 'document',
  40. name: 'Document',
  41. meta: { title: 'ai文档' },
  42. component: () => import('@/views/document/index.vue'),
  43. },
  44. {
  45. path: 'gdfx',
  46. name: 'Gdfx',
  47. meta: { title: '供地分析' },
  48. component: () => import('@/views/gdfx/index.vue'),
  49. }
  50. ]
  51. },
  52. {
  53. path: 'ai-search',
  54. name: 'AiSearch',
  55. meta: { title: 'ai搜索' },
  56. component: () => import('@/views/ai-search/ai-search.vue'),
  57. },
  58. {
  59. path: 'policy/interpret',
  60. name: 'Zcjd',
  61. meta: { title: '政策解读' },
  62. component: () => import('@/views/zjjd/index.vue'),
  63. },
  64. {
  65. path: 'policy/smart',
  66. name: 'Zcdb',
  67. meta: { title: '政策对比' },
  68. component: () => import('@/views/zcdb/smartComparison.vue'),
  69. },
  70. // {
  71. // path: '/register',
  72. // name: 'register',
  73. // meta: { title: '注册页面' },
  74. // component: () => import('@/views/register/register.vue'),
  75. // },,
  76. {
  77. path: '404',
  78. name: '404',
  79. meta: { title: '404' },
  80. component: () => import('@/views/404/index.vue'),
  81. },
  82. {
  83. path: '/viewer',
  84. name: 'viewer',
  85. // component: () => import('@/layout/NewsLayout.vue'),
  86. children: [
  87. {
  88. path: 'txt',
  89. name: 'txt',
  90. meta: { title: 'txt 预览' },
  91. component: () => import('@/views/document-viewer/text-document-viewer.vue'),
  92. },
  93. {
  94. path: 'word',
  95. name: 'word',
  96. meta: { title: 'word 预览' },
  97. component: () => import('@/views/document-viewer/word-document-viewer.vue'),
  98. },
  99. ]
  100. },
  101. ],
  102. },
  103. ]