Debug: Deshabilitar onMounted y watch en componentes de tablas
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m3s

This commit is contained in:
2025-11-21 22:55:17 -06:00
parent c5d11433e3
commit 85bcd5737c
3 changed files with 19 additions and 23 deletions

View File

@@ -174,10 +174,6 @@
<script setup lang="ts"> <script setup lang="ts">
import type { Lote, Operacion } from '~/composables/useLotes' import type { Lote, Operacion } from '~/composables/useLotes'
import LotesLotesTable from '~/components/lotes/LotesTable.vue'
import OperacionesOperacionesTable from '~/components/operaciones/OperacionesTable.vue'
console.log('🚀 App.vue: Componentes importados', { LotesLotesTable, OperacionesOperacionesTable })
const { isAuthenticated } = useAuthentik() const { isAuthenticated } = useAuthentik()

View File

@@ -161,15 +161,15 @@ const formatDate = (dateString: string) => {
} }
// Cargar lotes al montar // Cargar lotes al montar
onMounted(() => { // onMounted(() => {
console.log('🔵 LotesTable montado correctamente') // console.log('🔵 LotesTable montado correctamente')
loadLotes().catch(error => { // loadLotes().catch(error => {
console.error('❌ Error cargando lotes:', error) // console.error('❌ Error cargando lotes:', error)
}) // })
}) // })
// Recargar cuando cambia el filtro // // Recargar cuando cambia el filtro
watch(filtroTipo, () => { // watch(filtroTipo, () => {
loadLotes() // loadLotes()
}) // })
</script> </script>

View File

@@ -137,14 +137,14 @@ const formatDate = (dateString: string) => {
}) })
} }
onMounted(() => { // onMounted(() => {
console.log('🟡 OperacionesTable montado correctamente') // console.log('🟡 OperacionesTable montado correctamente')
loadOperaciones().catch(error => { // loadOperaciones().catch(error => {
console.error('❌ Error cargando operaciones:', error) // console.error('❌ Error cargando operaciones:', error)
}) // })
}) // })
watch(filtroTipo, () => { // watch(filtroTipo, () => {
loadOperaciones() // loadOperaciones()
}) // })
</script> </script>