- Creazione "AbitareGliIblei"
- Mappa Interattiva con i markers
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
// @ts-ignore
|
||||
import { boot } from 'quasar/wrappers'
|
||||
|
||||
import { useGlobalStore } from '@src/store/globalStore';
|
||||
|
||||
export default boot(({ app, router }) => {
|
||||
// ******************************************
|
||||
// *** Per non permettere di accedere alle pagine in cui è necessario essere Loggati ! ***
|
||||
@@ -16,6 +18,39 @@ export default boot(({ app, router }) => {
|
||||
// runs the default `next()` callback but also triggers
|
||||
// the subsequent Middleware function.
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log('beforeEach ROUTER')
|
||||
// Execute your command before each navigation
|
||||
// executeCommand();
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
try {
|
||||
globalStore.editOn = false
|
||||
} catch(e) {
|
||||
|
||||
}
|
||||
|
||||
next()
|
||||
|
||||
/* const answer = window.confirm('Do you really want to leave? you have unsaved changes!')
|
||||
if (answer) {
|
||||
next()
|
||||
} else {
|
||||
next(false)
|
||||
}
|
||||
*/
|
||||
|
||||
//if (to.matched.some(record => record.meta.requiresAuth) && !userStore.isLogged) {
|
||||
// next({ name: 'login', query: { next: to.fullPath } })
|
||||
//} else {
|
||||
// next()
|
||||
//}
|
||||
|
||||
|
||||
// Continue with the navigation
|
||||
|
||||
});
|
||||
|
||||
/* router.beforeEach((to, from, next) => {
|
||||
var accessToken = store.state.session.userSession.accessToken
|
||||
// ESTANDO LOGEADO
|
||||
|
||||
20
src/boot/vue-html-to-paper.ts.off
Normal file
20
src/boot/vue-html-to-paper.ts.off
Normal file
@@ -0,0 +1,20 @@
|
||||
import { boot } from 'quasar/wrappers';
|
||||
import { VueHtmlToPaper } from 'vue-html-to-paper';
|
||||
|
||||
const options = {
|
||||
name: '_blank',
|
||||
specs: [
|
||||
'fullscreen=yes',
|
||||
'titlebar=yes',
|
||||
'scrollbars=yes'
|
||||
],
|
||||
styles: [
|
||||
'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',
|
||||
// Aggiungi qui i link ai tuoi stili CSS, se necessario
|
||||
]
|
||||
};
|
||||
|
||||
// Definisce un componente di boot per Vue
|
||||
export default boot(({ app }) => {
|
||||
app.use(VueHtmlToPaper, options);
|
||||
});
|
||||
Reference in New Issue
Block a user