Skip to content
New issue

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

[功能]: 添加默认vue异常全局捕获支持 #587

Closed
NHZEX opened this issue Aug 6, 2024 · 0 comments
Closed

[功能]: 添加默认vue异常全局捕获支持 #587

NHZEX opened this issue Aug 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NHZEX
Copy link
Contributor

NHZEX commented Aug 6, 2024

描述

添加默认vue全局异常捕获提升开发体验。
比如computed内发生运行时错误时具体错误内容打印会对调试友好很大。

建议的解决方案

app.config.errorHandler = (err, instance, info) => {
    console.error('vue-error', err, info, instance);
  };

或者更高级的扩展支持
image

替代方案

No response

额外的上下文

No response

@NHZEX NHZEX changed the title [功能]: 添加默认vue全局异常捕获支持 [功能]: 添加默认vue异常全局捕获支持 Aug 6, 2024
@Azir-11 Azir-11 added the enhancement New feature or request label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants