From 395932e710cbfeecda6139727cda76a534a98dac Mon Sep 17 00:00:00 2001 From: arturo guerrero Date: Mon, 2 Sep 2019 10:41:13 -0500 Subject: [PATCH] arreglo de el contador y actualizacion de equipos --- src/components/inicio/Equipo.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/inicio/Equipo.vue b/src/components/inicio/Equipo.vue index 514a66c..225b0cb 100644 --- a/src/components/inicio/Equipo.vue +++ b/src/components/inicio/Equipo.vue @@ -193,14 +193,15 @@ export default { }) .then(res => { swal('Exito', 'Peticion exitosa ', 'success') - axios.get(api.url + '/prestamo', { + axios.get(api.url + '/prestamo?kiosko=' + this.$store.getters.kiosko, { headers: { 'token': this.$store.getters.token } }) .then(response => { - this.prestamo = response.data - this.status = response.data.data.status + this.prestamo = response.data.info + this.status = response.data.status + console.log(this.prestamo) }) .catch(error => { swal('Error', error.response.data.err, 'error')