This commit is contained in:
shijingjing
2022-04-28 18:43:13 +08:00
parent eab064c155
commit 543f31d60c
3 changed files with 5 additions and 5 deletions

View File

@@ -262,11 +262,11 @@
current: file.accessUrl
})
} else {
wx.downloadFile({
uni.downloadFile({
url: file.accessUrl,
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
uni.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')