- add vue router
- add extra view components
This commit is contained in:
parent
a4e8ee6f2e
commit
2cbe628d10
13 changed files with 567 additions and 446 deletions
23
src/router/index.ts
Normal file
23
src/router/index.ts
Normal 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;
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue