diff --git a/resources/js/app.js b/resources/js/app.js index dd45c1e..9b76829 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -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') }, });