We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如下代码,请求可能抛错,逻辑也可能抛错。如何判断这个 error 对象是否为 umi-request 抛出来?
umi-request
如果是 axios 的话可以用 axios.isAxiosError,umi-request 呢?
try { const data = await fetchData(); // 使用 umi-request 打请求 handleData(data); } catch (error) { // 如何判断这个 error 对象是 `umi-request` 抛出来的? }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如下代码,请求可能抛错,逻辑也可能抛错。如何判断这个 error 对象是否为
umi-request
抛出来?如果是 axios 的话可以用 axios.isAxiosError,umi-request 呢?
The text was updated successfully, but these errors were encountered: