- Creazione "AbitareGliIblei"

- Mappa Interattiva con i markers
This commit is contained in:
Surya Paolo
2024-07-31 15:02:30 +02:00
parent 3ab18b591f
commit 822585cf33
252 changed files with 3600294 additions and 4300 deletions

View File

@@ -3,11 +3,14 @@ import {
} from 'vue-router'
import { cfgrouter } from './route-config'
import { useGlobalStore } from '@src/store/globalStore';
export default function (/* { store, ssrContext } */) {
import { useUserStore } from '@src/store/UserStore';
export default function ({ store, /*ssrContext } */}: {store: any}) {
const routermode = process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory
const userStore = useUserStore(store)
const createHistory = process.env.SERVER
? createMemoryHistory
: routermode
@@ -20,8 +23,10 @@ export default function (/* { store, ssrContext } */) {
),
});
/*
// Add the beforeEach hook
router.beforeEach((to, from, next) => {
console.log('beforeEach ROUTER')
// Execute your command before each navigation
// executeCommand();
@@ -31,11 +36,18 @@ export default function (/* { store, ssrContext } */) {
} catch(e) {
}
//if (to.matched.some(record => record.meta.requiresAuth) && !userStore.isLogged) {
// next({ name: 'login', query: { next: to.fullPath } })
//} else {
// next()
//}
// Continue with the navigation
next();
});
}); */
return router;
}