Debug: Deshabilitar onMounted y watch en componentes de tablas
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m3s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m3s
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user