|
@@ -178,8 +178,10 @@ Page({
|
|
|
})
|
|
|
wx.downloadFile({
|
|
|
url: item.url,
|
|
|
+ filePath: wx.env.USER_DATA_PATH + '/' + item.document, // 本地自定义的文件名
|
|
|
success: function (res) {
|
|
|
- const filePath = res.tempFilePath
|
|
|
+ console.log(res)
|
|
|
+ const filePath = res.tempFilePath || res.filePath
|
|
|
wx.openDocument({
|
|
|
filePath: filePath,
|
|
|
showMenu: true,
|