处理刷新

chromesetting
杨树林 5 years ago
parent 900fff4480
commit 67fbcb823b

@ -276,16 +276,27 @@ class Challengesjupyter extends Component {
if(info.file.response.status===0){ if(info.file.response.status===0){
try { try {
this.setState({ this.setState({
jupyter_url : "" jupyter_url : null,
booljupyterurls:false,
}) })
setTimeout(()=>{ setTimeout(()=>{
this.setState({ this.setState({
jupyter_url : this.state.jupyter_url, jupyter_url : this.state.jupyter_urls,
booljupyterurls:true,
}) })
},1000) },1000);
this.props.showNotification('上传文件成功!'); this.props.showNotification('上传文件成功!');
}catch (e) { }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 = { const uploadProps = {
width: 600, width: 600,
fileList, fileList,
multiple: true, multiple: false,
data:{ data:{
identifier:id, identifier:id,
}, },

Loading…
Cancel
Save