Umi-request = response.blob(); response.blob(); response.blob(); This is because umi-Request internally simplifies the return value by default, so add the attribute parseResponse: false in the configuration to turn off the simplification function and obtain the complete response object:

const request = extend({
  credentials: 'same-origin'.parseResponse: false});Copy the code

Response.clone ().json(); response.clone().json();

request.interceptors.response.use((response) = > {
  let data = response.clone().json();
});
Copy the code