From 111cca2965ec29d9dd8c959f502115ebc7822498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 23 Dec 2019 14:14:39 +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 --- public/react/src/modules/tpm/TPMDataset.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/tpm/TPMDataset.js b/public/react/src/modules/tpm/TPMDataset.js index ecd004a92..fca56b93d 100644 --- a/public/react/src/modules/tpm/TPMDataset.js +++ b/public/react/src/modules/tpm/TPMDataset.js @@ -311,7 +311,9 @@ class TPMDataset extends Component { //done 成功就会调用这个方法 if(info.file.response){ if(info.file.response.status===-1||info.file.response.status==="-1"){ - + this.setState({ + Buttonloading:false + }) }else{ this.getdatas(); this.setState({ @@ -320,6 +322,10 @@ class TPMDataset extends Component { // this.props.showNotification(`上传成功`); } } + }else{ + this.setState({ + Buttonloading:false + }) } if(info.file.response){