arreglo de el contador y actualizacion de equipos
This commit is contained in:
@@ -193,14 +193,15 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
swal('Exito', 'Peticion exitosa ', 'success')
|
swal('Exito', 'Peticion exitosa ', 'success')
|
||||||
axios.get(api.url + '/prestamo', {
|
axios.get(api.url + '/prestamo?kiosko=' + this.$store.getters.kiosko, {
|
||||||
headers: {
|
headers: {
|
||||||
'token': this.$store.getters.token
|
'token': this.$store.getters.token
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.prestamo = response.data
|
this.prestamo = response.data.info
|
||||||
this.status = response.data.data.status
|
this.status = response.data.status
|
||||||
|
console.log(this.prestamo)
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
swal('Error', error.response.data.err, 'error')
|
swal('Error', error.response.data.err, 'error')
|
||||||
|
|||||||
Reference in New Issue
Block a user