In my Vue component, I am using the function getOrderCount
to fetch the number of orders from a specific URL and display it in one of the table columns.
<div v-html="getOrderCount(user.orders_url)"></div>
async getOrderCount(link) {
const count = await this.getOrderCount(link);
return `<span class="p-1">${count}</span>`
},
However, instead of displaying the actual number in the table, it is showing an object Promise. enter image description here
Any help or solution would be greatly appreciated. Thank you!