Cambios en obtener sesion

This commit is contained in:
Alejandro Tasistro 2025-05-21 21:31:46 -03:00
parent 8a32841f9d
commit 44bd8045b8

5
resources/js/app.js vendored
View file

@ -76,7 +76,7 @@ const app = new Vue({
axios.get('/subpedidos/obtener_sesion')
.then(response => {
this.gdc = response.data.gdc;
this.settearDevoluciones();
// this.settearDevoluciones();
this.pedido = response.data.subpedido.id;
axios.get('/api/subpedidos/' + this.pedido)
.then(response => {
@ -117,7 +117,8 @@ const app = new Vue({
Event.$emit("pedido-actualizado");
});
});
Event.$emit('obtener-sesion')
if (window.location.pathname.startsWith('/productos'))
Event.$emit('obtener-sesion')
},
});