将 uni.request换成uni.downloadFile
// #ifdef H5
let blob = new Blob([ArrayBuffer])
this.codeSrc = URL.createObjectURL(blob)
// #endif
// #ifdef APP-PLUS
uni.downloadFile({url:'',success:res=>{
this.codeSrc = res.tempFilePath
}})
// #endif
![xxxwe](https://img-cdn-tc.dcloud.net.cn/account/identicon/8c1d382deb6b7c57c5f6e7d0b31954e2.png)
xxxwe
- 发布:2021-03-17 13:57
- 更新:2021-03-17 13:57
- 阅读:1107
0 个评论
要回复文章请先登录或注册