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.

66 lines
1.5 KiB

5 months ago
5 months ago
5 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: "/hxl_dzp1",
  14. name: "hxl_dzp1",
  15. component: () => import("../views/hxl_DZP/dzp1.vue"),
  16. },
  17. {
  18. path: "/animation",
  19. name: "animation",
  20. component: () => import("../views/animation/anima.vue"),
  21. },
  22. {
  23. path: "/homework",
  24. name: "homework",
  25. component: () => import("../views/homework/homework.vue"),
  26. },
  27. {
  28. path: "/calendar",
  29. name: "calendar",
  30. component: () => import("../views/calendar/calendar.vue"),
  31. },
  32. {
  33. path: "/3D1",
  34. name: "3D1",
  35. component: () => import("../views/three3D/3D1.vue"),
  36. },
  37. {
  38. path: "/fakeLink",
  39. name: "fakeLink",
  40. component: () => import("../views/fakeLink/homepage.vue"),
  41. },
  42. {
  43. path: "/fakeLinkLogin",
  44. name: "fakeLinkLogin",
  45. component: () => import("../views/fakeLink/login.vue"),
  46. },
  47. {
  48. path: "/homepageTwo",
  49. name: "homepageTwo",
  50. component: () => import("../views/fakeLink/homepage-two.vue"),
  51. children: [
  52. {
  53. path: "/dbqb",
  54. name: "dbqb",
  55. component: () => import("../views/fakeLink/dbqb/dbqb.vue"),
  56. },
  57. ],
  58. },
  59. ];
  60. // 创建路由实例
  61. const router = createRouter({
  62. history: createWebHistory(import.meta.env.VITE_PUBLIC_PATH),
  63. routes,
  64. });
  65. // 导出
  66. export default router;