0π
β
In your fetchData method you are calling the async action getProjects, but you are not waiting until the returned promise is resolved.
Try to use async and await in your fetchData method.
methods: {
async fetchData(page) {
await this.$store.dispatch("getProjects", page);
this.projects = this.$store.getters.projects;
},
},
- [Vuejs]-Can't preview Vue app developed with Vite in a 3rd party tool iframe (but can using Vue CLI)
Source:stackexchange.com