From bfc6551711a4f5e827d2e2e3c3a0c85059b2df7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 20 Dec 2019 22:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tpm/shixunchild/Challenges/Challengesjupyter.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 6a78e6e1a..46647af6f 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -19,6 +19,7 @@ class Challengesjupyter extends Component { iFrameHeight: '0px', jupyter_port:0, jupyter_url:null, + jupyter_urls:null, username:"", booljupyterurls:false, loading:false, @@ -27,6 +28,7 @@ class Challengesjupyter extends Component { isopentitletype:"Less", enlarge:false, fileList:[], + shuaxin:false, } } @@ -121,6 +123,7 @@ class Challengesjupyter extends Component { setTimeout(() => { this.setState({ jupyter_url:response.data.url, + jupyter_urls:response.data.url, jupyter_port:response.data.port, booljupyterurls:true, }) @@ -183,6 +186,7 @@ class Challengesjupyter extends Component { setTimeout(() => { this.setState({ jupyter_url:response.data.url, + jupyter_urls:response.data.url, jupyter_port:response.data.port, booljupyterurls:true, }) @@ -271,6 +275,14 @@ class Challengesjupyter extends Component { }else{ if(info.file.response.status===0){ try { + this.setState({ + jupyter_url : "" + }) + setTimeout(()=>{ + this.setState({ + jupyter_url : this.state.jupyter_url, + }) + },1000) this.props.showNotification('上传文件成功!'); }catch (e) {