测试安卓预览图片
This commit is contained in:
@@ -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;
|
||||
// }
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user