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') }) }, // 共享文件下载