From 63a8ecc9f991d47dc582aab21665662f4c2b8ad3 Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 9 Jun 2025 14:21:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9/=E6=89=B9=E9=87=8F=E4=B8=8B=E8=BD=BD=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/file-api.js | 8 ++++++++ src/utils/file-config.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/api/file-api.js b/src/api/file-api.js index 0d3eb49..fa131bb 100644 --- a/src/api/file-api.js +++ b/src/api/file-api.js @@ -430,6 +430,14 @@ export default { params }) }, + // 是否允许批量下载 + isAllowPackageDownload: function(params) { + return request({ + url: '/isAllowPackageDownload', + method: 'get', + params + }) + }, // 根据id获取文件信息 getFileInfoById: function(params) { return request({ diff --git a/src/utils/file-config.js b/src/utils/file-config.js index 1c49b31..a456e4b 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -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') })