123456789101112131415161718192021222324252627282930 |
- import { createRouter, createWebHistory } from "vue-router";
- import Mark from "@/features/mark/Mark.vue";
- const routes = [
- { path: "/", component: Mark },
- { path: "/mark", component: Mark },
- {
- path: "/admin/exam/inspected/start",
- component: () => import("@/features/inspect/Inspect.vue"),
- },
- {
- path: "/admin/exam/library/inspected/start",
- component: () => import("@/features/library/inspect/LibraryInspect.vue"),
- },
- {
- path: "/admin/exam/arbitrate/start",
- component: () => import("@/features/arbitrate/Arbitrate.vue"),
- },
- ];
- // 3. Create the router instance and pass the `routes` option
- // You can pass in additional options here, but let's
- // keep it simple for now.
- const router = createRouter({
- // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
- history: createWebHistory("web"),
- routes, // short for `routes: routes`
- });
- export default router;
|