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.

80 lines
2.0 KiB

5 months ago
2 months ago
5 months ago
5 months ago
5 months ago
2 months ago
2 months ago
5 months ago
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. redirect: 'Selectmodel'
  6. },
  7. {
  8. path: '/Selectmodel',
  9. name: 'Selectmodel',
  10. component: () => import('@/views/Selectmodel.vue')
  11. },
  12. {
  13. path: '/homePage',
  14. name: 'homePage',
  15. component: () => import('@/views/homePage.vue'),
  16. children: [
  17. {name: 'AiEmotion', path: '/AiEmotion', component: () => import('@/views/AiEmotion.vue')}
  18. ]
  19. },
  20. // {
  21. // path: '/AIchat',
  22. // name: 'AIchat',
  23. // component: () => import('@/views/AIchat.vue'),
  24. // meta: { title: 'AI对话' }
  25. // },
  26. {
  27. path: '/AIfind',
  28. name: 'AIfind',
  29. component: () => import('@/views/AIfind.vue'),
  30. meta: { title: '发现' }
  31. },
  32. {
  33. path: '/Announcement',
  34. name: 'Announcement',
  35. component: () => import('@/views/Announcement.vue'),
  36. },
  37. {
  38. path: '/Feedback',
  39. name: 'Feedback',
  40. component: () => import('@/views/Feedback.vue'),
  41. },
  42. // {
  43. // path: '/AiEmotion',
  44. // name: 'AiEmotion',
  45. // component: () => import('@/views/AiEmotion.vue')//AI情绪大模型页面
  46. // },
  47. {
  48. path: '/DBQBmodel',
  49. name: 'DBQBmodel',
  50. component: () => import('@/views/DBQBmodel.vue'),
  51. },
  52. {
  53. path: '/Emotionsmodel',
  54. name: 'Emotionsmodel',
  55. component: () => import('@/views/Emotionsmodel.vue'),
  56. },
  57. {
  58. path: '/emotionsEcharts',
  59. name: 'emotionsEcharts',
  60. component: () => import('@/views/emotionsEcharts.vue')
  61. },
  62. {
  63. path: '/marketTemperature',
  64. name: 'marketTemperature',
  65. component: () => import('@/views/components/marketTemperature.vue')
  66. }
  67. ]
  68. // 创建路由实例
  69. const router = createRouter({
  70. history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH),
  71. routes
  72. })
  73. // 导出
  74. export default router