24 lines
967 B
TypeScript
24 lines
967 B
TypeScript
import { createRouter, createWebHistory } from "vue-router";
|
|
import HomeView from "../views/HomeView.vue";
|
|
import AuthView from "../views/AuthView.vue";
|
|
import ProjectView from "../views/Project/Index.vue";
|
|
import TestView from "../views/TestView.vue";
|
|
import UserView from "@/views/User/Index.vue";
|
|
import ExamView from "@/views/Exam/Index.vue";
|
|
import MarkdownEditor from "@/components/MarkdownEditor.vue";
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{ path: "/", name: "home", component: HomeView },
|
|
{ path: "/login", name: "login", component: AuthView },
|
|
{ path: "/project", name: "project", component: ProjectView },
|
|
{ path: "/test", name: "test", component: TestView },
|
|
{ path: "/user", name: "user", component: UserView },
|
|
{ path: "/exam", name: "exam", component: ExamView },
|
|
{ path: "/markdown", name: "markdown", component: MarkdownEditor },
|
|
],
|
|
});
|
|
|
|
export default router;
|