[Solved] Vue Error: Error in v-on handler (Promise/async): “[object object]“
Solution:
Use try_ catch package async… await function
/**
* export
*/
async download () { // export
try {
const { parkName } = this.formInline
const res:any = await exportInvoice({ parkName })
this.downSteam(res)
} catch (_) {}
}
Read More:
- How to Solve Uncaught (in promise) Error (Two Solutions)
- Parsing error: await is a reserved word [How to Solve]
- [Solved] IE Browser Error: unhandled promise rejection error: access is denied. File stream Download
- [Solved] VUE3 Error: Error: ENOSPC: System limit for number of file watchers reached
- JS async await Error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
- JS native implementation Promise.all
- [Solved] node.js request Error: Error: unable to verify the first certificate
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Vue-vscode Error: Parsing error: Unexpected reserved word ‘await‘.
- [Solved] Vue item error: Regeneratorruntime is not defined
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Vue Error: Error in v-on handler (Promise/async): “Error: Error“
- [Solved] Error: Incorrect arguments to mysqld_stmt_execute
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- How to solve Uncaught (in promise) error in VUE?
- Vue: initialize failed: invalid DOM [How to Solve]
- How to Solve Vue route jump repeated clicks Error
- Vue2.0: How to Use vue3 api to encapsulate Axios
- Vue a page is mounted to send multiple requests at the same time, and the loading is processed uniformly