From f3a554abb9ebe209e7df6f44e9616cee7c716500 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 29 Apr 2022 20:20:09 +0800 Subject: [PATCH] BUG 29414 --- src/apps/AppInfotainment/newsDetail.vue | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/apps/AppInfotainment/newsDetail.vue b/src/apps/AppInfotainment/newsDetail.vue index 622460cf..bf2fa242 100644 --- a/src/apps/AppInfotainment/newsDetail.vue +++ b/src/apps/AppInfotainment/newsDetail.vue @@ -87,18 +87,9 @@ export default { current: file.accessUrl }) } else { - uni.downloadFile({ + uni.previewFile({ url: file.accessUrl, - success: function (res) { - var filePath = res.tempFilePath - uni.openDocument({ - filePath: filePath, - showMenu: true, - success: function (res) { - console.log('打开文档成功') - } - }) - } + size: file.size }) } },