We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
posva
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.5.2
https://vuejs.org/v2/examples/
在created回调方法里面写一个setTimeout 模拟,抛出error,errorCaptured无法捕捉,如果是同步throw new Error() 就能捕获
errorCaptured能捕获异步promise内部抛出的错误,
不能捕获error
The text was updated successfully, but these errors were encountered:
文档明确写了异步错误无法捕捉,要你自己处理。这是 js 的语言机制决定的。
Sorry, something went wrong.
No branches or pull requests
Version
2.5.2
Reproduction link
https://vuejs.org/v2/examples/
Steps to reproduce
在created回调方法里面写一个setTimeout 模拟,抛出error,errorCaptured无法捕捉,如果是同步throw new Error() 就能捕获
What is expected?
errorCaptured能捕获异步promise内部抛出的错误,
What is actually happening?
不能捕获error
The text was updated successfully, but these errors were encountered: