请求后台接口时,返回图片内容以下: 前端
咋一看,不是base64格式,二十二进制的图片流数据,前端要想展现,只须要转换数据格式为base64便可。this
设置了arraybuffer后的接口返回:code
this.processImgSrc = 'data:image/png;base64,' + btoa(new Uint8Array(res.data).reduce((data, byte) => data + String.fromCharCode(byte), ''))