- add vue router

- add extra view components
This commit is contained in:
Arno Kaimbacher 2021-11-23 17:30:19 +01:00
parent a4e8ee6f2e
commit 2cbe628d10
13 changed files with 567 additions and 446 deletions

23
src/router/index.ts Normal file
View file

@ -0,0 +1,23 @@
import { createWebHistory, createRouter } from "vue-router";
import HomeViewComponent from "@/views/home-view/home-view-component.vue";
import MapViewComponent from "@/views/map-view/map-view-component.vue";
const routes = [
{
path: "/test/",
name: "Home",
component: HomeViewComponent,
},
{
path: "/test/map",
name: "Map",
component: MapViewComponent,
},
];
const router = createRouter({
history: createWebHistory(),
routes,
});
export default router;