wx.openDocument docx被自动转换为pdf?
wx.downloadFile({
url: url,
success(res2) {
console.log(res2)
wx.openDocument({
filePath: res2.tempFilePath,
fileType: 'docx',
success() {
that.toast('文件打开成功')
},
fail(ee) {
console.log(ee)
that.toast("文件打开失败:" + ee.errMsg)
}
})
},
fail(e) {
that.toast("文件下载失败:" +url+ e.errMsg)
}
})