All
This commit is contained in:
@@ -253,10 +253,14 @@ const store = reactive({
|
||||
if (fecha_fin) params['fecha_fin'] = fecha_fin
|
||||
|
||||
const paramsUrl = new URLSearchParams(params as any).toString()
|
||||
const res = await fetch(`action/action_auditoria.php?${paramsUrl}`, {
|
||||
method: 'GET',
|
||||
})
|
||||
this.data = await res.json()
|
||||
try {
|
||||
const res = await fetch(`action/action_auditoria.php?${paramsUrl}`, {
|
||||
method: 'GET',
|
||||
})
|
||||
this.data = await res.json()
|
||||
} catch (error) {
|
||||
alert('Error al cargar los datos')
|
||||
}
|
||||
this.loading = false
|
||||
store.current.page = 1
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user