Files
cataRio/nuxt4/app/app.vue
josedario87 f17ff66613
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m4s
Fix: Eliminar re-renderizados usando mutaciones directas en lugar de clonaciones
- Modificar useIndexedDB para no reemplazar sesionActiva en actualizar()
- Modificar useCatacion para mutar directamente las propiedades
- Eliminar todas las clonaciones con JSON.parse/stringify
- Mantener referencias de objetos estables para Vue reactivity
2025-10-18 03:36:13 -06:00

36 lines
996 B
Vue

<template>
<UApp>
<NuxtRouteAnnouncer />
<UNotifications />
<NuxtPage />
</UApp>
</template>
<script setup lang="ts">
const { isAuthenticated } = useAuthentik()
const { inicializar, getCurrentColors } = useColorCustomization()
// Inicializar personalización de colores
onMounted(() => {
inicializar()
})
// Color de tema reactivo basado en el background del tema actual
const themeColor = computed(() => getCurrentColors.value.background)
// Configurar meta tags para PWA con theme-color reactivo
useHead({
link: [
{ rel: 'manifest', href: '/manifest.webmanifest' },
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
{ rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }
],
meta: [
{ name: 'theme-color', content: themeColor },
{ name: 'mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
{ name: 'apple-mobile-web-app-status-bar-style', content: 'default' }
]
})
</script>