started to open concernement on map click

This commit is contained in:
2023-04-05 22:02:19 +02:00
parent 4a7f9282b5
commit d88914c679
11 changed files with 86 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@views/Home.vue'
import StaticView from '@views/Static.vue'
// import StaticView from '@views/Static.vue'
// import ConcernementView from '@views/Concernement.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -18,6 +19,16 @@ const router = createRouter({
// which is lazy-loaded when the route is visited.
component: () => import('../views/Static.vue'),
props: true
},
{
path: '/concernement/:id',
name: 'concernement',
// component: ConcernementView,
// route level code-splitting
// this generates a separate chunk (About.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('../views/Concernement.vue'),
props: true
}
]
})