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