diff --git a/resources/js/app.js b/resources/js/app.js index 3254467..daee04b 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -91,6 +91,7 @@ const app = new Vue({ axios.get('/api/subpedidos/' + this.pedido) .then(response => { this.pedido = response.data.data; + Event.$emit("pedido-actualizado"); }); } else { axios.get('/admin/obtener_sesion') diff --git a/resources/js/components/CartelPedidoAprobado.vue b/resources/js/components/CartelPedidoAprobado.vue index c43fa1f..be6f8a4 100644 --- a/resources/js/components/CartelPedidoAprobado.vue +++ b/resources/js/components/CartelPedidoAprobado.vue @@ -1,10 +1,31 @@