routes.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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: 'home',
  22. name: 'Home',
  23. meta: { title: 'AI搜索2' },
  24. component: () => import('@/views/ai-home/index.vue'),
  25. },
  26. {
  27. path: 'newDocument',
  28. name: 'NewDocument',
  29. meta: { title: 'ai文档' },
  30. component: () => import('@/views/wwzx/newDocument.vue'),
  31. },
  32. {
  33. path: 'znxz',
  34. name: 'Znxz',
  35. meta: { title: '用地推荐' },
  36. component: () => import('@/views/znxz/index.vue'),
  37. },
  38. {
  39. path: 'znzt',
  40. name: 'Znzt',
  41. meta: { title: '智能找图' },
  42. component: () => import('@/views/znzt/index.vue'),
  43. },
  44. {
  45. path: 'ztzs',
  46. name: 'Ztzs',
  47. meta: { title: '找图找数' },
  48. component: () => import('@/views/ztzs/index.vue'),
  49. },
  50. {
  51. path: 'gdfx',
  52. name: 'Gdfx',
  53. meta: { title: '供地分析' },
  54. component: () => import('@/views/gdfx/index.vue'),
  55. },
  56. {
  57. path: 'document',
  58. name: 'Document',
  59. meta: { title: 'ai文档' },
  60. component: () => import('@/views/document/index.vue'),
  61. },
  62. {
  63. path: 'document_person',
  64. name: 'Document',
  65. meta: { title: '个人知识库' },
  66. component: () => import('@/views/document_person/index.vue'),
  67. },
  68. {
  69. path: 'gdfx',
  70. name: 'Gdfx',
  71. meta: { title: '供地分析' },
  72. component: () => import('@/views/gdfx/index.vue'),
  73. }
  74. ]
  75. },
  76. {
  77. path: 'ai-search',
  78. name: 'AiSearch',
  79. meta: { title: 'ai搜索' },
  80. component: () => import('@/views/ai-search/ai-search.vue'),
  81. },
  82. {
  83. path: 'policy/interpret',
  84. name: 'Zcjd',
  85. meta: { title: '政策解读' },
  86. component: () => import('@/views/zjjd/index.vue'),
  87. },
  88. {
  89. path: 'policy/smart',
  90. name: 'Zcdb',
  91. meta: { title: '政策对比' },
  92. component: () => import('@/views/zcdb/smartComparison.vue'),
  93. },
  94. // {
  95. // path: '/register',
  96. // name: 'register',
  97. // meta: { title: '注册页面' },
  98. // component: () => import('@/views/register/register.vue'),
  99. // },,
  100. {
  101. path: '404',
  102. name: '404',
  103. meta: { title: '404' },
  104. component: () => import('@/views/404/index.vue'),
  105. },
  106. {
  107. path: '/viewer',
  108. name: 'viewer',
  109. // component: () => import('@/layout/NewsLayout.vue'),
  110. children: [
  111. {
  112. path: 'txt',
  113. name: 'txt',
  114. meta: { title: 'txt 预览' },
  115. component: () => import('@/views/document-viewer/text-document-viewer.vue'),
  116. },
  117. {
  118. path: 'word',
  119. name: 'word',
  120. meta: { title: 'word 预览' },
  121. component: () => import('@/views/document-viewer/word-document-viewer.vue'),
  122. },
  123. ]
  124. },
  125. ],
  126. },
  127. ]