|
|
|
@ -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,
|
|
|
|
|
},
|
|
|
|
|