uniapp 微信小程序 打开pdf文档
getpdf() {
var that = this;
wx.downloadFile({
url: configs.baseUrl + that.path,
success: function(res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function(res) {
console.log('打开文档成功')
}
})
}
})
}