husq
2023-10-09 2c680fa0913b9ff1e8e7a4f8bc3dd49543fc97b5
src/api/http/request.ts
@@ -65,11 +65,11 @@
    }
    // @See: https://github.com/axios/axios/issues/383
    if (!err.response || !err.response.status) {
      message.error('The network is abnormal, please check the backend service and try again')
      message.error('网络异常,请检查后端服务后重试')
      return
    }
    if (err.response?.status !== 200) {
      message.error(`ERROR_CODE: ${err.response?.status}`)
      message.error(`错误码: ${err.response?.status}`)
    }
    // if (err.response?.status === 403) {
    //   // window.location.href = '/'