调整实践任务提交成功后继续提交 导致多个问题

dev_cs_new
杨树明 6 years ago
parent 6121de9d63
commit bc218fe3da

@ -178,7 +178,9 @@ export default class TPMchallengesnew extends Component {
}
CreatePracticesend = () => {
this.setState({
this.setState({
CreatePracticesendtype:true
})
@ -237,14 +239,15 @@ export default class TPMchallengesnew extends Component {
exec_time:exec_time
}).then((response) => {
if (response.data.status === 1) {
$("html").animate({ scrollTop: 0 })
this.setState({
setopen: true,
CreatePracticesendtype:false,
tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
tab3url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3",
})
// $("html").animate({ scrollTop: 0 })
window.location.href=`/shixuns/${id}/challenges/${response.data.challenge_id}/editcheckpoint`;
// this.setState({
// setopen: true,
// CreatePracticesendtype:false,
// tab2url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=2",
// tab3url: "/shixuns/" + id + "/challenges/"+response.data.challenge_id+"/tab=3",
// })
}
this.props.showSnackbar(response.data.messages);

Loading…
Cancel
Save