xxxwe
xxxwe
  • 发布:2021-03-17 13:57
  • 更新:2021-03-17 13:57
  • 阅读:568

app端uni.request,requestType无效

分类:uni-app

将 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

0 关注 分享

要回复文章请先登录注册