From 7e7f2b034b821c058be2e28a27da9fccd2042b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 22 Jun 2019 19:06: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 --- public/react/src/modules/tpm/TPMBanner.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index 67d0296f5..f6355ec51 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -330,12 +330,16 @@ class TPMBanner extends Component { if(response.status===200){ // let path="/shixuns/"+response.data.shixun_identifier+"/challenges"; // this.props.history.push(path); + if(response.data.status===-2){ + this.shixunexec(response.data.message) + } + this.setState({ shixunsreplace:false, isSpin:false, }) - message.success('重置成功,正在进入实训!'); - this.startshixunCombat(); + // message.success('重置成功,正在进入实训!'); + // this.startshixunCombat(); }} ).catch((error) => { this.setState({