Cambios en obtener sesion
This commit is contained in:
parent
8a32841f9d
commit
44bd8045b8
1 changed files with 3 additions and 2 deletions
5
resources/js/app.js
vendored
5
resources/js/app.js
vendored
|
@ -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')
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue