diff --git a/APP/pages/compras.vue b/APP/pages/compras.vue index cd53fa3..0ba4425 100644 --- a/APP/pages/compras.vue +++ b/APP/pages/compras.vue @@ -108,11 +108,11 @@ export default { openForm: false , }; }, - mounted() { + async mounted() { - this.$store.dispatch("getCategorias"); - this.$store.dispatch("getMetodos"); + await this.$store.dispatch("getCategorias"); + await this.$store.dispatch("getMetodos"); this.newCompra.fecha = this.$store.state.fecha; this.categorias = this.$store.state.categorias; this.metodos_pago = this.$store.state.metodos_de_pago;