From 38c0279dfa840fdaeaa89c9c18f4f26b4ab66af7 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 23 Dec 2021 11:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=BB=84=E3=80=81=E5=88=86?= =?UTF-8?q?=E6=A0=87=E5=A7=94=E5=85=B6=E4=BB=96=E5=88=86=E5=8F=91=E8=B5=84?= =?UTF-8?q?=E6=96=99=E4=B8=8B=E8=BD=BD=E3=80=81=E6=9F=A5=E7=9C=8B=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/detailPage/FileList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/detailPage/FileList.vue b/src/components/detailPage/FileList.vue index 77b4f6e..d3e9dc4 100644 --- a/src/components/detailPage/FileList.vue +++ b/src/components/detailPage/FileList.vue @@ -83,7 +83,7 @@ export default { * @param record */ handleDownload(record) { - downloadFile(`sys/common/download/${ record.fileId }`, record.fileName) + downloadFile(`sys/common/download/${ record.fileId }`, record.fileName, {type: 'download'}) }, /** * 预览 @@ -91,7 +91,7 @@ export default { */ preview(record) { if (record && record.fileId) { - const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }` + const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }&type=view` let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }` // let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` window.open(url)