h5显示后台获取到的图片流
数据请求时添加:
config.responseType = "blob"
获取流后显示前处理://response为获取到的流
var binaryData = [];
binaryData.push(response);
let imsg = window.URL.createObjectURL(new Blob(binaryData, {type: "image/png"}));
显示:
<img src="imsg" />