Starting from
Language finches document

preface

Microfront-end product development uses Umi-Request, which is similar to (but seems to be stronger than) Axios in that it comes up with a file download function, which is: get the data stream and record it. In fact, the two most important things are:

  1. The responseType will be set to BLOB

https://github.com/blueju/umi-request-practice/blob/4f11c63e7b47f730ed1bcdde867c6f4575241485/example/get-data-stream.jsx #L14

  1. How do I export a file stream from the response results

https://github.com/blueju/umi-request-practice/blob/4f11c63e7b47f730ed1bcdde867c6f4575241485/example/get-data-stream.jsx #L16

Github

https://github.com/blueju/umi-request-practice.git

location