xieb
2023-09-13 3667807a7b7418efc090ee3fa6a6b734bc3080bf
src/api/http/request.ts
@@ -33,10 +33,17 @@
instance.interceptors.response.use(
  response => {
    // console.info('URL: ' + response.config.baseURL + response.config.url, '\nData: ', response.data, '\nResponse:', response)
    if (response.data.code && !response.data.success) {
      message.error(response.data.message)
    }
      //处理消息返回
      // if (response.data.code && !response.data.success) {
    //   message.error(response.data.message)
    // }
      if (response.data.code != 5000) {
          message.error(response.data.message)
      }
    return response
  },
  err => {