Skip to content

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

@NHZEX

Description

@NHZEX

描述

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

建议的解决方案

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

或者更高级的扩展支持
image

替代方案

No response

额外的上下文

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions