Ant-design-pro: 🧐[问题]表格列表请求异常时,会阻断网页执行

Created on 16 Dec 2019  ·  2Comments  ·  Source: ant-design/ant-design-pro

🧐 问题描述

使用表格ProTable request属性,fetch请求出错,抛出了Error异常,无法使用 try catch 捕获错误,导致页面运行杯阻断

💻 示例代码

request={params => queryRule(params)}

🚑 其他信息

image

🕵🏻‍♀️ question

Most helpful comment

require().then().catch()

All 2 comments

require().then().catch()

require().then().catch()

ok thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  ·  3Comments

952425340 picture 952425340  ·  3Comments

lvzheng0404 picture lvzheng0404  ·  3Comments

zhongjiewu picture zhongjiewu  ·  3Comments

yaoleiroyal picture yaoleiroyal  ·  3Comments