index.ts 1.4 KB

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