From a218e1eaffaecb0b09d6489ac7d083ba21726480 Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 3 Jun 2024 17:24:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD,?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=90=8E=E5=8E=8B=E7=BC=A9=E5=8C=85=E9=87=8C?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#149?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 1 - src/utils/file-config.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 9a92b45..97b366a 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -1530,7 +1530,6 @@ export default { const container = document.querySelector('.dashboard-container') let clientWidth = container.clientWidth this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight - console.log('containerResize', clientWidth, this.clientHeight) this.gridItemWidth = 125 if (this.queryFileType === 'image') { this.gridItemWidth = 165 diff --git a/src/utils/file-config.js b/src/utils/file-config.js index ea22b57..dde39f3 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -66,7 +66,8 @@ export default { // 打包下载文件 packageDownload: function(fileIds, token, username) { fileApi.isAllowDownload().then(() => { - window.open(`${this.baseUrl}/packageDownload?fileIds=${fileIds}&jmal-token=${token}&name=${username}`, '_self') + fileIds = fileIds.join(',') + window.open(`${this.baseUrl}/packageDownload?fileIds=${fileIds}`, '_self') }) }, // 共享文件下载