index.ts 945 B

123456789101112131415161718192021222324252627282930
  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/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. // 3. Create the router instance and pass the `routes` option
  20. // You can pass in additional options here, but let's
  21. // keep it simple for now.
  22. const router = createRouter({
  23. // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
  24. history: createWebHistory("web"),
  25. routes, // short for `routes: routes`
  26. });
  27. export default router;