src/api/index.js
@@ -84,13 +84,15 @@ return Promise.resolve(response.data) } }, (error) => { notification.error({ className: 'notification-custom-error', bottom: 0, message: '状态码-' + error.response.status + ',请联系管理员', placement: 'bottomRight', duration: 15 }) if (error && error.response) { notification.error({ className: 'notification-custom-error', bottom: 0, message: '状态码-' + error.response.status + ',请联系管理员', placement: 'bottomRight', duration: 15 }) } return Promise.reject(error) })