src/api/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/index.js
@@ -73,7 +73,15 @@ }, (error) => { let response = error.response || '' if (response && response.status) { if (!response && (error.message.includes('Network Error') || error.message.includes('CORS'))) { notification.error({ className: 'notification-custom-error', bottom: 0, message: '网络连接失败!', placement: 'bottomRight', duration: 15 }) } else if (response && response.status) { notification.error({ className: 'notification-custom-error', bottom: 0,