用 js 下载二进制流,保存图片等
FileSaver.js
import { saveAs } from 'file-saver';
FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBom })
downloadjs
import download from 'downloadjs';
download(data, strFileName, strMimeType);