fix: 修复选中多个文件下载,下载后压缩包里只有一个文件的问题 #149
This commit is contained in:
parent
03e4749238
commit
a218e1eaff
@ -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
|
||||||
|
|||||||
@ -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')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 共享文件下载
|
// 共享文件下载
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user