From 28c0b3aebf16a85e5aa593ea9e09d20c2a6b2076 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 5 Jul 2023 11:28:06 +0800 Subject: [PATCH] =?UTF-8?q?CN-1156=20fix:=20=E4=BF=AE=E5=A4=8Ds3=3D0?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD=E5=92=8C=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 53b4085111f0d81600878406c4b7c915d0c5176c) --- src/mixins/data-list.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/mixins/data-list.js b/src/mixins/data-list.js index 543e1d5d..7c1c3555 100644 --- a/src/mixins/data-list.js +++ b/src/mixins/data-list.js @@ -222,8 +222,14 @@ export default { if (this.$refs.dataTable.loadingTableId === u.id) { // 列表单个下载 return } - if (u.state !== 1 || u.upload !== 1) { - return + if (localStorage.getItem(storageKey.s3Enable) == 1) { + if (u.state !== 1 || u.upload !== 1) { + return + } + } else { + if (u.state !== 1) { + return + } } let fileName = '' let url = '' @@ -284,8 +290,14 @@ export default { if (this.$refs.dataTable.loadingPreviewId === u.id) { // 列表单个下载 return } - if (u.state !== 1 || u.upload !== 1) { - return + if (localStorage.getItem(storageKey.s3Enable) == 1) { + if (u.state !== 1 || u.upload !== 1) { + return + } + } else { + if (u.state !== 1) { + return + } } const params = { id: u.id