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">
|
||||
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()
|
||||
|
||||
|
||||
@@ -161,15 +161,15 @@ const formatDate = (dateString: string) => {
|
||||
}
|
||||
|
||||
// Cargar lotes al montar
|
||||
onMounted(() => {
|
||||
console.log('🔵 LotesTable montado correctamente')
|
||||
loadLotes().catch(error => {
|
||||
console.error('❌ Error cargando lotes:', error)
|
||||
})
|
||||
})
|
||||
// onMounted(() => {
|
||||
// console.log('🔵 LotesTable montado correctamente')
|
||||
// loadLotes().catch(error => {
|
||||
// console.error('❌ Error cargando lotes:', error)
|
||||
// })
|
||||
// })
|
||||
|
||||
// Recargar cuando cambia el filtro
|
||||
watch(filtroTipo, () => {
|
||||
loadLotes()
|
||||
})
|
||||
// // Recargar cuando cambia el filtro
|
||||
// watch(filtroTipo, () => {
|
||||
// loadLotes()
|
||||
// })
|
||||
</script>
|
||||
|
||||
@@ -137,14 +137,14 @@ const formatDate = (dateString: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
console.log('🟡 OperacionesTable montado correctamente')
|
||||
loadOperaciones().catch(error => {
|
||||
console.error('❌ Error cargando operaciones:', error)
|
||||
})
|
||||
})
|
||||
// onMounted(() => {
|
||||
// console.log('🟡 OperacionesTable montado correctamente')
|
||||
// loadOperaciones().catch(error => {
|
||||
// console.error('❌ Error cargando operaciones:', error)
|
||||
// })
|
||||
// })
|
||||
|
||||
watch(filtroTipo, () => {
|
||||
loadOperaciones()
|
||||
})
|
||||
// watch(filtroTipo, () => {
|
||||
// loadOperaciones()
|
||||
// })
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user