后端返回数据流样式
前端代码
let blob = new Blob([res], { type: 'application/pdf' })
let fileURL= URL.createObjectURL(blob);
window.open(fileURL);
后端返回数据流样式
前端代码
let blob = new Blob([res], { type: 'application/pdf' })
let fileURL= URL.createObjectURL(blob);
window.open(fileURL);