处理刷新

chromesetting
杨树林 5 years ago
parent 8e8237072b
commit bfc6551711

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

Loading…
Cancel
Save