diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index 46647af6f..0f10ee69a 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -276,16 +276,27 @@ class Challengesjupyter extends Component { if(info.file.response.status===0){ try { this.setState({ - jupyter_url : "" + jupyter_url : null, + booljupyterurls:false, }) setTimeout(()=>{ this.setState({ - jupyter_url : this.state.jupyter_url, + jupyter_url : this.state.jupyter_urls, + booljupyterurls:true, }) - },1000) + },1000); this.props.showNotification('上传文件成功!'); }catch (e) { - + this.setState({ + jupyter_url : null, + booljupyterurls:false, + }) + setTimeout(()=>{ + this.setState({ + jupyter_url : this.state.jupyter_urls, + booljupyterurls:true, + }) + },1000); } } @@ -313,7 +324,7 @@ class Challengesjupyter extends Component { const uploadProps = { width: 600, fileList, - multiple: true, + multiple: false, data:{ identifier:id, },