Fix: Hide MainLayout (header and bottom nav) on landing page
This commit is contained in:
@ -28,6 +28,7 @@ const { loadMaps } = useGoogleMaps()
|
|||||||
// Iniciar descarga asíncrona masiva de Google Maps al bootear VUE (Ahorra ~3 seg de espera en MapView)
|
// Iniciar descarga asíncrona masiva de Google Maps al bootear VUE (Ahorra ~3 seg de espera en MapView)
|
||||||
loadMaps()
|
loadMaps()
|
||||||
|
|
||||||
|
const isLandingPage = computed(() => route.name === 'landing')
|
||||||
const isSplashScreen = computed(() => route.name === 'splash')
|
const isSplashScreen = computed(() => route.name === 'splash')
|
||||||
const isAuthScreen = computed(() => {
|
const isAuthScreen = computed(() => {
|
||||||
return route.path === '/login' || route.path === '/register' || route.name === 'auth'
|
return route.path === '/login' || route.path === '/register' || route.name === 'auth'
|
||||||
@ -183,7 +184,7 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MainLayout v-if="!isSplashScreen && !isAuthScreen">
|
<MainLayout v-if="!isSplashScreen && !isAuthScreen && !isLandingPage">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
<RouterView v-else />
|
<RouterView v-else />
|
||||||
|
|||||||
Reference in New Issue
Block a user