3👍
You are using namespaced
modules, so try like:
this.$store.dispatch('countries/getCountries');
and call your geter like:
computed: {
getData() {
return this.$store.getters['countries/getCountries']
}
}
0👍
Store.js
import countries from "./modules/countries "
Vue.use(Vuex);
export const store = new Vuex.Store({
modules : {
countries
}
});
- [Vuejs]-Vue js Tailwind card design with image out of the card
- [Vuejs]-Error: ENOENT: no such file or directory, open 'C:\Users\username\Desktop\vue-tailwind-naive\tailwind.config.js'
Source:stackexchange.com