Skip to content

baseURL的网址无效时,报TypeError: Failed to fetch错误,没有异常处理。 #1061

@lijl-vb

Description

@lijl-vb

重现步骤

在线示例链接:(必填)
https://github.com/ant-design/x
步骤:
1.设置错误的baseURL
2.发送请求
3.页面报错

当前行为

设置错误的baseURL,发送请求,页面报错。
Image

Image

预期行为

设置错误的baseURL,发送请求,能捕捉到异常,页面不崩溃。

上下文

No response

版本

1.5.0

您在哪些浏览器上遇到了这个问题?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions