Attempting to utilize async-await in TypeScript Vue 3 to retrieve data, but encountering an issue where the function is already logging 'undefined' (or executing before the function call)
private async exportDataOrder() {
await this.getDataExport() // calling a function
let data = await this.controller.exportOrderData // result of the function
if (data) {
console.log(data, 'from vue')
console.log('waiting')
}
}