Преглед на файлове

default mapmode terraindevie on first load

bach преди 1 година
родител
ревизия
4bb92f3e1a
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/router/index.js

+ 2 - 0
src/router/index.js

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