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

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

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

Loading…
Cancel
Save