安卓手机微信版本: 8.0.10
小程序基础库:2.17.0
安卓机器在安装qq浏览器的情况下打开文档两次(跳转两次)。删除qq浏览器后打开文档速度明显变慢。ios不会出现类似情况。
wx.downloadFile({
url,
success(res) {
const filePath = res.tempFilePath
if (filePath) {
wx.openDocument({
filePath: filePath,
success() {
hideLoading()
}
})
} else {
hideLoading()
return false
}
},
fail() {
hideLoading()
showToast('打开文档失败')
}
})