feat: set up vue router
This commit is contained in:
parent
899b80a006
commit
7cd06b1609
1 changed files with 34 additions and 0 deletions
34
src/router/index.ts
Normal file
34
src/router/index.ts
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
import { createRouter, createWebHistory } from "vue-router";
|
||||||
|
import HomeView from "../views/HomeView.vue";
|
||||||
|
|
||||||
|
const router = createRouter({
|
||||||
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
|
routes: [
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
name: "home",
|
||||||
|
component: HomeView,
|
||||||
|
meta: {
|
||||||
|
title: "Home",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/anatomy",
|
||||||
|
name: "anatomy",
|
||||||
|
component: () => import("@/views/AnatomyView.vue"),
|
||||||
|
meta: {
|
||||||
|
title: "Anatomy",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/career-path",
|
||||||
|
name: "career-path",
|
||||||
|
component: () => import("@/views/CareerPathView.vue"),
|
||||||
|
meta: {
|
||||||
|
title: "Career Path",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue