Skip to content

global error handler  #169

@hzbdesigner

Description

@hzbdesigner

遇到的问题

  • 服务器 http正常(返回了数据),返回的数据结果不正确,但是res.error 为空,没有触发 api 层的报错,导致使用数据的具体业务报错
    结果
  • 开发环境下:直接redbox 报错
  • 在下环境下:刷新直接空白
    临时解决方案
  • 对res.data做判断
    彻底解决方案
  • 全局异常捕捉

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions