routes.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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: 'znxz',
  22. name: 'Znxz',
  23. meta: { title: '智能选址' },
  24. component: () => import('@/views/znxz/index.vue'),
  25. },
  26. {
  27. path: 'document',
  28. name: 'Document',
  29. meta: { title: 'ai文档' },
  30. component: () => import('@/views/document/index.vue'),
  31. },
  32. ]
  33. },
  34. {
  35. path: 'ai-search',
  36. name: 'AiSearch',
  37. meta: { title: 'ai搜索' },
  38. component: () => import('@/views/ai-search/ai-search.vue'),
  39. },
  40. {
  41. path: 'policy/interpret',
  42. name: 'Zcjd',
  43. meta: { title: '政策解读' },
  44. component: () => import('@/views/zjjd/index.vue'),
  45. },
  46. {
  47. path: 'policy/smart',
  48. name: 'Zcdb',
  49. meta: { title: '政策对比' },
  50. component: () => import('@/views/zcdb/smartComparison.vue'),
  51. },
  52. // {
  53. // path: '/register',
  54. // name: 'register',
  55. // meta: { title: '注册页面' },
  56. // component: () => import('@/views/register/register.vue'),
  57. // },
  58. {
  59. path: '/viewer',
  60. name: 'viewer',
  61. // component: () => import('@/layout/NewsLayout.vue'),
  62. children: [
  63. {
  64. path: 'txt',
  65. name: 'txt',
  66. meta: { title: 'txt 预览' },
  67. component: () => import('@/views/document-viewer/text-document-viewer.vue'),
  68. },
  69. {
  70. path: 'word',
  71. name: 'word',
  72. meta: { title: 'word 预览' },
  73. component: () => import('@/views/document-viewer/word-document-viewer.vue'),
  74. },
  75. ]
  76. },
  77. ],
  78. },
  79. ]