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.

41 lines
987 B

4 months ago
4 months ago
  1. import { createRouter, createWebHistory } from 'vue-router'
  2. const routes = [
  3. {
  4. path: '/',
  5. redirect: 'homePage'
  6. },
  7. {
  8. path: '/homePage',
  9. name: 'homePage',
  10. component: () => import('@/views/homePage.vue')
  11. },
  12. {
  13. path: '/AIchat',
  14. name: 'AIchat',
  15. component: () => import('@/views/AIchat.vue'),
  16. meta: { title: 'AI对话' }
  17. },
  18. {
  19. path: '/AIfind',
  20. name: 'AIfind',
  21. component: () => import('@/views/AIfind.vue'),
  22. meta: { title: '发现' }
  23. },
  24. {
  25. path: '/Announcement',
  26. name: 'Announcement',
  27. component: () => import('@/views/Announcement.vue'),
  28. },
  29. {
  30. path: '/Feedback',
  31. name: 'Feedback',
  32. component: () => import('@/views/Feedback.vue'),
  33. }
  34. ]
  35. // 创建路由实例
  36. const router = createRouter({
  37. history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH),
  38. routes
  39. })
  40. // 导出
  41. export default router