学习页面接口联调

This commit is contained in:
yanghang
2025-06-25 08:42:03 +08:00
parent c8c4e3285a
commit 4248ed0e59
8 changed files with 127 additions and 40 deletions
@@ -53,7 +53,12 @@
});
}else{
previewFile(id).then((result) => {
//#ifdef APP-PLUS
let _header = result.header['Content-Type'].split(';')[0]
// #endif
//#ifndef APP-PLUS
let _header = result.header['content-type'].split(';')[0]
// #endif
let base64 = `data:${_header};base64,` + uni.arrayBufferToBase64(result.data)
this.imgUrlShow = base64;
});