From fba73636de0777019461a6d2b625b74327dde5af Mon Sep 17 00:00:00 2001 From: nat Date: Mon, 11 Apr 2022 22:53:26 -0300 Subject: [PATCH] Editar producto en chismossa --- public/js/chismosa.js | 12 +++++++++++- resources/views/chismosa.blade.php | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/public/js/chismosa.js b/public/js/chismosa.js index 5242668..7b85c05 100644 --- a/public/js/chismosa.js +++ b/public/js/chismosa.js @@ -63,6 +63,11 @@ Vue.component('chismosa', { this.subpedido = response.data.data; }); } + }, + mounted() { + Event.$on('sync-subpedido', () => { + this.fetchSubpedido(); + }); } }); @@ -72,7 +77,7 @@ Vue.component('producto-row', { {{ this.producto.nombre }} {{ this.producto.pivot.cantidad }} {{ this.producto.pivot.total }} -