comment logs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user