comment logs

This commit is contained in:
María
2025-08-28 14:26:40 +02:00
parent 71274defb2
commit b8a05b0d05

View File

@@ -146,9 +146,9 @@ export default {
watch: {
'$route.query'(newValue) {
console.log('New Value:', newValue)
console.log('Route changed:', this.$route.fullPath)
console.log('Current params:', this.$route.query)
//console.log('New Value:', newValue)
//console.log('Route changed:', this.$route.fullPath)
//console.log('Current params:', this.$route.query)
this.updateData(newValue)
Object.assign(this.$data, this.$options.data())
@@ -259,10 +259,11 @@ export default {
},
async updateData(value) {
console.log('updateData called with:', value)
//console.log('updateData called with:', value)
const filters = { q: this.appliedFilters.q }
const query = Object.keys(value).length === 0 ? { ...filters } : { ...value, ...filters }
//console.log('Navigating to busqueda with query:', query)
this.$router.push({ name: 'busqueda', query })
const config = useRuntimeConfig()