Merge pull request #417 from jamebal/dev

feat: 新增文件夹/批量下载权限控制
This commit is contained in:
jmal 2025-06-09 14:24:48 +08:00 committed by GitHub
commit c3e193ea57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -430,6 +430,14 @@ export default {
params
})
},
// 是否允许批量下载
isAllowPackageDownload: function(params) {
return request({
url: '/isAllowPackageDownload',
method: 'get',
params
})
},
// 根据id获取文件信息
getFileInfoById: function(params) {
return request({

View File

@ -81,7 +81,7 @@ export default {
},
// 打包下载文件
packageDownload: function(fileIds) {
fileApi.isAllowDownload({fileIds: fileIds}).then(() => {
fileApi.isAllowPackageDownload({fileIds: fileIds}).then(() => {
fileIds = fileIds.join(',')
window.open(`${this.baseUrl}/packageDownload?fileIds=${fileIds}`, '_self')
})