index.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { createRouter, createWebHashHistory } from "vue-router";
  2. const router = createRouter({
  3. history: createWebHashHistory(import.meta.env.BASE_URL),
  4. routes: [
  5. {
  6. path: "/",
  7. redirect: "/demo",
  8. },
  9. {
  10. path: "/demo",
  11. name: "demo",
  12. component: () => import("@/views/demo/DemoView.vue"),
  13. meta: {
  14. title: "测试",
  15. },
  16. },
  17. {
  18. path: "/report",
  19. name: "report",
  20. component: () => import("@/views/report/EvaluationReport.vue"),
  21. meta: {
  22. title: "思维芯测评",
  23. },
  24. },
  25. {
  26. path: "/customize/SemesterReport",
  27. name: "SemesterReport",
  28. component: () => import("@/views/customize/SemesterReport.vue"),
  29. meta: {
  30. title: "行为记录综合报告",
  31. },
  32. },
  33. {
  34. path: "/customize/ComplexReportList",
  35. name: "ComplexReportList",
  36. component: () => import("@/views/customize/ComplexReportList.vue"),
  37. meta: {
  38. title: "行为记录综合报告幼儿列表",
  39. },
  40. },
  41. {
  42. path: "/customize/GrowthRecord",
  43. name: "GrowthRecord",
  44. component: () => import("@/views/customize/GrowthRecord.vue"),
  45. meta: {
  46. title: "成长记录",
  47. },
  48. },
  49. {
  50. path: "/customize/SingleReport",
  51. name: "SingleReport",
  52. component: () => import("@/views/customize/SingleReport.vue"),
  53. meta: {
  54. title: "行为记录单次报告",
  55. },
  56. },
  57. ],
  58. });
  59. export default router;