init vue router

This commit is contained in:
Julien Calixte
2023-03-14 12:01:03 +01:00
parent 3102d6dc5e
commit 2ee8a0de47
6 changed files with 37 additions and 10 deletions

7
src/router/router.ts Normal file
View File

@@ -0,0 +1,7 @@
import Home from "../pages/Home.vue"
import { createRouter, createWebHashHistory } from "vue-router"
export const router = createRouter({
history: createWebHashHistory(),
routes: [{ path: "/", component: Home }],
})