图片地址已经配置合法域名,部分手机好用,部分手机拉取不了,showShareImageMenu没反应,打开调试工具后就好用了
wx.downloadFile({
url: this.data.shareImgList.shareUrl1,//服务器的图片地址,已设置合法域名
success: (res) => {
console.log(res.tempFilePath)
wx.showShareImageMenu({
path: res.tempFilePath
})

猜测是基础库太低导致,具体要看报错信息。
👇点个[ 有用 ],让答案帮助更多的人^_^
微信管理后台已经设置最低基础库为2.16.1,真机调试跟开发工具都有效果,手机上无效 wx.downloadFile({ url: this.data.downList[this.data.currentIndex], success: (res) => { console.log(res,'res') wx.showShareImageMenu({ path: res.tempFilePath, }) } })downloadFile保存的临时地址也需要配置合法域名么