From f63a0b7caa12cf810b813b0b79a9f13fa563937b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 7 Jan 2020 11:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Repository/RepositoryAddFileupload_file.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js index 35dfdf653..d9866d1aa 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js @@ -30,11 +30,18 @@ class RepositoryAddFileupload_files extends Component { handleChange = (info) => { - if (info.file.status === 'uploading' || info.file.status === 'done') { + if (info.file.status === 'done') { + let fileList = [...info.fileList]; - console.log(info) - console.log(info.file) - console.log(fileList) + + if(info.file.response.status===-1){ + notification.open({ + message: '提示', + description:info.file.response.message, + }) + return + } + fileList = fileList.slice(-2); fileList = fileList.map(file => { if (file.response) {