mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-16 19:32:21 +01:00
Add base files
This commit is contained in:
20
src/router/index.ts
Normal file
20
src/router/index.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { createRouter, createWebHashHistory } from "vue-router"
|
||||
import HomeView from "../views/HomeView.vue"
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes: [
|
||||
{
|
||||
path: "/",
|
||||
name: "home",
|
||||
component: HomeView
|
||||
},
|
||||
// {
|
||||
// path: "/about",
|
||||
// name: "about",
|
||||
// component: () => import("../views/AboutView.vue")
|
||||
// }
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user