|
|
@@ -746,8 +746,10 @@ const codeMessage = { |
|
|
|
}; |
|
|
|
|
|
|
|
export const request = { |
|
|
|
|
|
|
|
errorHandler: (error) => { |
|
|
|
const { response } = error; |
|
|
|
console.log('response',response); |
|
|
|
if (response && response.status !== 200 && response.status !== 422) { |
|
|
|
const errorText = codeMessage[response.status] || response.statusText; |
|
|
|
const { status, url } = response; |
|
|
@@ -762,7 +764,8 @@ export const request = { |
|
|
|
history.push(loginPath); |
|
|
|
} |
|
|
|
} else { |
|
|
|
notification.error({ |
|
|
|
console.log('11111111111111111111111111111111111111111111111111'); |
|
|
|
notification.error({ |
|
|
|
description: '网络发生异常,无法连接服务器', |
|
|
|
message: '网络异常', |
|
|
|
}); |
|
|
|