Yanghc
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/requestErrorConfig.ts
|
|
@ -72,7 +72,7 @@ export const errorConfig: RequestConfig = { |
|
|
} else if (error.response) { |
|
|
} else if (error.response) { |
|
|
// Axios 的错误
|
|
|
// Axios 的错误
|
|
|
// 请求成功发出且服务器也响应了状态码,但状态代码超出了 2xx 的范围
|
|
|
// 请求成功发出且服务器也响应了状态码,但状态代码超出了 2xx 的范围
|
|
|
message.error('Response status:', error.response.status); |
|
|
message.error(`Response status:${error.response.status}`); |
|
|
} else if (error.request) { |
|
|
} else if (error.request) { |
|
|
// 请求已经成功发起,但没有收到响应
|
|
|
// 请求已经成功发起,但没有收到响应
|
|
|
// \`error.request\` 在浏览器中是 XMLHttpRequest 的实例,
|
|
|
// \`error.request\` 在浏览器中是 XMLHttpRequest 的实例,
|
|
|
|