Skip to content

[Feature Request] responded onError 中能够处理后端 自定义的data #6

@724493602

Description

@724493602

你在什么情况下,需要这个功能解决什么问题?

现在 在适配器中错误会固定返回 errMsg ,不是每个后端都很标准和专业,有的喜欢在状态码非200中处理问题,遇到这种情况,适配器就无法传递具体错误,进行下一步处理
fail: (reason) => reject(new Error(reason.errMsg))

你期望的 API 是什么样子的?

能否提供一个方法传递下具体的信息,而不是固定错误
fail: (reason) => reject(reason)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions