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)
|
||||
loadMaps()
|
||||
|
||||
const isLandingPage = computed(() => route.name === 'landing')
|
||||
const isSplashScreen = computed(() => route.name === 'splash')
|
||||
const isAuthScreen = computed(() => {
|
||||
return route.path === '/login' || route.path === '/register' || route.name === 'auth'
|
||||
@ -183,7 +184,7 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainLayout v-if="!isSplashScreen && !isAuthScreen">
|
||||
<MainLayout v-if="!isSplashScreen && !isAuthScreen && !isLandingPage">
|
||||
<RouterView />
|
||||
</MainLayout>
|
||||
<RouterView v-else />
|
||||
|
||||
Reference in New Issue
Block a user