Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_Ysl

dev_cs_new
杨树林 6 years ago
commit 4cdfbcce8f

@ -18,7 +18,10 @@ class CBreadcrumb extends Component{
if (item.to) {
return <React.Fragment>
<WordsBtn style="grey" className="fl hovercolorblue" to={item.to}>{item.name}</WordsBtn>
<span className="color-grey-9 fl ml3 mr3">{separator || '&gt;'}</span>
{separator ?
<span className="color-grey-9 fl ml3 mr3">{separator}</span> :
<span className="color-grey-9 fl ml3 mr3">&gt;</span>
}
</React.Fragment>
} else {
return <span>{item.name}</span>

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