代码
uni.downloadFile({
url: i.val,
success(res) {
// 没执行
var filePath = res.tempFilePath
that.modalShow = false
uni.openDocument({
filePath: filePath,
success(res) {
console.log('打开文档成功')
},
fail(err) {
uni.showToast({
title: err,
duration: 10000
})
}
})
},
fail: (err) => {
// 没执行
uni.showToast({
title: err,
duration: 10000
})
},
complete: () => {
// 执行了
}
})
sallyxixi (作者)
测试了,微信小程序确实也是打不开...
2021-08-02 12:13
z***@gmail.com
回复 sallyxixi: 请问大佬解决了吗?我也遇到了
2021-08-04 03:43