mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 13:23:49 +00:00
chore dep: little mistake
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
"@lingui/react": "^5.0.0",
|
||||
"@rc-component/picker": "^1.9.0",
|
||||
"antd": "^6.0.0",
|
||||
"axios": "^2.1.0",
|
||||
"axios": "^1.0.0",
|
||||
"classnames": "^2.5.1",
|
||||
"d3-shape": "^2.1.0",
|
||||
"dayjs": "^1.11.10",
|
||||
|
||||
@@ -64,7 +64,7 @@ export default function request(options) {
|
||||
.catch(error => {
|
||||
const { response, message: errMsg, code, name } = error
|
||||
|
||||
// axios v2 cancellation can surface as ERR_CANCELED / CanceledError or message matching our sentinel
|
||||
// axios v1 cancellation can surface as ERR_CANCELED / CanceledError or message matching our sentinel
|
||||
if (String(errMsg) === CANCEL_REQUEST_MESSAGE || code === 'ERR_CANCELED' || name === 'CanceledError') {
|
||||
return {
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user