default mapmode terraindevie on first load

This commit is contained in:
Bachir Soussi Chiadmi 2023-05-22 09:44:22 +02:00
parent b827625ce7
commit 4bb92f3e1a

View File

@ -44,6 +44,8 @@ router.afterEach((to, from) => {
if (to.hash) { if (to.hash) {
console.log("we have a hash"); console.log("we have a hash");
concernement_store.setMapMode(to.hash.replace('#', '')); concernement_store.setMapMode(to.hash.replace('#', ''));
}else{ // default terraindevie
concernement_store.setMapMode("terraindevie");
} }
} }