I am calling an API with Axios using vue store
and mapAction
. I also have one function to call, but only after the API responds. But the function is being called before the API responds.
...mapActions("functionCall", ["functionName"]),
async refresh() {
await this.functionName()
this.test()
},
test(){
console.log('not working well....')
},