现在可以使用wx.downloadFile打开文件了
wx.downloadFile({
url: `${that.data.filePath}`,
success: function (res) {
const filePath = res.tempFilePath
console.log(filePath)
wx.openDocument({
filePath: filePath,
success: function (res) {
//console.log(‘打开文档成功’)
}
})
}
})