在PC端页面运行正常,打包成APP页面不展示
可能原因:一是因为APP好像不能使用cookie,二是从另一个项目复制过来的东西,之前的页面传参有点BUG,可能在PC端可以运行,在APP就有校验
后端返回图片,二进制流,前端展示图片
request({
url:
"××××××××××××××××××××××××××××××××××××××××××××?no=" +
××× + "&bizName=" +×××××,
responseType: "blob", //关键
}).then((res) => {
let data = new Blob([res]);
let url = window.URL.createObjectURL(data);
console.log(url)
});