From 73412c733019eb292e84b2c8a22c786a1f753eda 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:06:40 +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 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/public/react/src/modules/tpm/TPMDataset.js b/public/react/src/modules/tpm/TPMDataset.js index 0c380467a..ecd004a92 100644 --- a/public/react/src/modules/tpm/TPMDataset.js +++ b/public/react/src/modules/tpm/TPMDataset.js @@ -459,9 +459,9 @@ class TPMDataset extends Component { } ButtonloadinghandleChange=()=>{ // this.props.showNotification(`zhzzzzz`); - // this.setState({ - // Buttonloading:true - // }) + this.setState({ + Buttonloading:false + }) } render() { const {tpmLoading, shixun, user, match} = this.props; @@ -494,9 +494,7 @@ class TPMDataset extends Component { const isLt400M = file.size / 1024 / 1024 <= 400; if (!isLt400M) { - this.setState({ - Buttonloading:false - }) + this.ButtonloadinghandleChange this.props.showNotification('文件大小必须小于等于400MB!'); } return isLt400M; @@ -548,7 +546,7 @@ class TPMDataset extends Component {
- +
{ data_sets_count>0?