From b80e43feee52ffb604249e7363ec4a4066456489 Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Mon, 15 Aug 2022 17:04:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=20?= =?UTF-8?q?=E2=80=8556672=20=E7=BC=96=E8=BE=91=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BF=87=E5=A4=9A=20=E5=86=8D=E6=AC=A1=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=97=B6=20=E4=B8=8A=E4=BC=A0=E7=9A=84=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=A2=E5=A4=B1=E5=A4=A7=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../regulatoryRepository/dataCenter/index.vue | 45 +++++++++++++++---- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/src/pages/regulatoryRepository/dataCenter/index.vue b/src/pages/regulatoryRepository/dataCenter/index.vue index 23c2391d2..da7f8e0a0 100644 --- a/src/pages/regulatoryRepository/dataCenter/index.vue +++ b/src/pages/regulatoryRepository/dataCenter/index.vue @@ -314,9 +314,9 @@ { - if (item.response){ - return item.response.data.attId - }else { - return item.id - } - }) - this.attributeEO.attachFileId = fileIdList.join(',') + + if(response.ok){ + const fileIdList = fileList.map(item => { + if (item.response){ + return item.response.data.attId + }else { + return item.id + } + }) + this.attributeEO.attachFileId = fileIdList.join(',') + } }, handleRemove(file, fileList) { const fileIdList = fileList.map(item => {