vuex dispatch await code example
Example: await vuex dispatch true
mounted() {
this.loading = true;
this.$store.dispatch('module/function', 'value').then((response) => {
this.loading = false;
});
},
mounted() {
this.loading = true;
this.$store.dispatch('module/function', 'value').then((response) => {
this.loading = false;
});
},