From 44bd8045b8dd6257ab7e0b4e969c9905eb3e6089 Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 21 May 2025 21:31:46 -0300 Subject: [PATCH] Cambios en obtener sesion --- resources/js/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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') }, });