index.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { createRouter, createWebHistory } from "vue-router";
  2. import Mark from "@/features/mark/Mark.vue";
  3. const routes = [
  4. { path: "/", component: Mark },
  5. { path: "/mark", component: Mark, name: "Mark" },
  6. {
  7. path: "/admin/exam/inspected/start",
  8. component: () => import("@/features/student/inspect/Inspect.vue"),
  9. },
  10. {
  11. path: "/admin/exam/inspected/import/start",
  12. component: () =>
  13. import("@/features/student/importInspect/ImportInspect.vue"),
  14. },
  15. {
  16. path: "/admin/exam/library/inspected/start",
  17. component: () => import("@/features/library/inspect/LibraryInspect.vue"),
  18. },
  19. {
  20. path: "/admin/exam/arbitrate/start",
  21. component: () => import("@/features/arbitrate/Arbitrate.vue"),
  22. },
  23. {
  24. path: "/admin/exam/track/student",
  25. name: "StudentTrack",
  26. component: () => import("@/features/student/studentTrack/StudentTrack.vue"),
  27. },
  28. {
  29. path: "/admin/exam/quality",
  30. component: () => import("@/features/library/quality/Quality.vue"),
  31. },
  32. {
  33. path: "/admin/exam/track/library",
  34. component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  35. },
  36. {
  37. path: "/admin/exam/track/trialLibrary",
  38. name: "TrialRoute",
  39. component: () => import("@/features/library/libraryTrack/LibraryTrack.vue"),
  40. },
  41. {
  42. path: "/:pathMatch(.*)*",
  43. name: "NotFound",
  44. component: () => import("@/components/404.vue"),
  45. },
  46. ];
  47. // 3. Create the router instance and pass the `routes` option
  48. // You can pass in additional options here, but let's
  49. // keep it simple for now.
  50. const router = createRouter({
  51. // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
  52. history: createWebHistory("web"),
  53. routes, // short for `routes: routes`
  54. });
  55. export default router;