fix: 修复选中多个文件下载,下载后压缩包里只有一个文件的问题 #149

This commit is contained in:
jmal 2024-06-03 17:24:28 +08:00
parent 03e4749238
commit a218e1eaff
2 changed files with 2 additions and 2 deletions

View File

@ -1530,7 +1530,6 @@ export default {
const container = document.querySelector('.dashboard-container') const container = document.querySelector('.dashboard-container')
let clientWidth = container.clientWidth let clientWidth = container.clientWidth
this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight this.clientHeight = document.documentElement.clientHeight - this.lessClientHeight
console.log('containerResize', clientWidth, this.clientHeight)
this.gridItemWidth = 125 this.gridItemWidth = 125
if (this.queryFileType === 'image') { if (this.queryFileType === 'image') {
this.gridItemWidth = 165 this.gridItemWidth = 165

View File

@ -66,7 +66,8 @@ export default {
// 打包下载文件 // 打包下载文件
packageDownload: function(fileIds, token, username) { packageDownload: function(fileIds, token, username) {
fileApi.isAllowDownload().then(() => { 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')
}) })
}, },
// 共享文件下载 // 共享文件下载