PS:在请求方法的选项中添加responseType:'blob'this.httpClient.get('',{headers:{...},params:{...},responseType:'blob',...})codefirstconstcode=response.data.replace(/[\n\r]/g,'')//检查base64字符串是否符合base64编码constraw=window.atob(code)//base64解码constrawLength=raw.length//获取base64解码后的文件流字符串constuInt8Array=newUint8Array(rawLength)//初始化一个Uint8Array数组for(leti=0;i
