dev_admin
hjm 6 years ago
parent 365c849bba
commit eefaf77b5f

@ -56,16 +56,17 @@ class ShixunhomeWorkItem extends Component{
startbtn:true,
})
let url= list+".json";
const w=window.open('about:blank');
axios.get(url).then((response) => {
if(response.status===200){
if(response.data.status===-2){
this.setState({
startbtn:false,
shixunsreplace:true,
hidestartshixunsreplacevalue:response.data.message+".json"
})
w.close()
}else if(response.data.status===-1){
console.log(response)
}else if(response.data.status===-3){
@ -74,11 +75,9 @@ class ShixunhomeWorkItem extends Component{
startshixunCombattype:true,
startbtn:false
})
w.close()
}else{
if(response.data.status!=401&&response.data.status!=403){
const w=window.open('about:blank');
w.location.href= "/tasks/"+response.data.game_identifier
}
@ -88,6 +87,8 @@ class ShixunhomeWorkItem extends Component{
this.setState({
startbtn:false
})
w.close()
});
}

Loading…
Cancel
Save