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) {