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

dev_cs_new
daiao 6 years ago
commit be866893c3

@ -18,7 +18,10 @@ class CBreadcrumb extends Component{
if (item.to) { if (item.to) {
return <React.Fragment> return <React.Fragment>
<WordsBtn style="grey" className="fl hovercolorblue" to={item.to}>{item.name}</WordsBtn> <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> </React.Fragment>
} else { } else {
return <span>{item.name}</span> return <span>{item.name}</span>

@ -178,6 +178,8 @@ 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