king
2025-04-11 7fceb6e30cc309690cb693c112a8959f2126cd1f
2025-04-11
1个文件已修改
10 ■■■■■ 已修改文件
src/api/index.js 10 ●●●●● 补丁 | 查看 | 原始文档 | 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,