0👍
Hi Rather then using asyncData
you can use serverPrefetch
try this
serverPrefetch():Promise<any> {
// this function should return Promise
return this.$axios.get(
'https://my_api...'
).then(result => {
this.articlelist = result.data.data
});
}
- [Vuejs]-Rendering and skipping to next column with vue.js for loop
- [Vuejs]-Vue js multiselect edit form not showing data
Source:stackexchange.com