funcion/nueva-lista-de-productos #29

Merged
atasistro merged 17 commits from funcion/nueva-lista-de-productos into master 2024-09-01 12:58:38 -03:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 2a57fdc1e9 - Show all commits

View File

@ -11,7 +11,10 @@ export default {
} }
}, },
mounted() { mounted() {
Event.$on('sync-subpedido', (cantidad,_) => this.sincronizar(cantidad)); Event.$on('sync-subpedido', (cantidad,productoId) => {
if (this.producto.id === productoId)
this.sincronizar(cantidad);
});
}, },
methods: { methods: {
decrementar() { decrementar() {