测试安卓预览图片

This commit is contained in:
yanghang
2025-06-23 16:53:40 +08:00
parent 747280c172
commit 3c1afdd8dc
2 changed files with 11 additions and 8 deletions
@@ -43,12 +43,12 @@
getPreviewUrlBlob(id) {
// this.imgUrlShow = '@/static/images/index/message_b.png'
previewFile(id).then((res) => {
// this.imgUrlShow = URL.createObjectURL(res);
const reader = new FileReader();
reader.readAsDataURL(res)
reader.onloadend = () => {
this.imgUrlShow = reader.result;
}
this.imgUrlShow = res;
// const reader = new FileReader();
// reader.readAsDataURL(res)
// reader.onloadend = () => {
// this.imgUrlShow = reader.result;
// }
});
},
},