From 6121de9d637cada9c24e5ab965135742ba84a614 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 8 Aug 2019 15:10:23 +0800 Subject: [PATCH 1/2] separator --- public/react/src/modules/courses/common/CBreadcrumb.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/common/CBreadcrumb.js b/public/react/src/modules/courses/common/CBreadcrumb.js index 107e8f2a9..d9d91f4be 100644 --- a/public/react/src/modules/courses/common/CBreadcrumb.js +++ b/public/react/src/modules/courses/common/CBreadcrumb.js @@ -18,7 +18,10 @@ class CBreadcrumb extends Component{ if (item.to) { return {item.name} - {separator || '>'} + {separator ? + {separator} : + > + } } else { return {item.name} From bc218fe3dacb79db13d8bd7b429e17acc14ed704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 8 Aug 2019 15:44:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=20=E8=B0=83=E6=95=B4=E5=AE=9E=E8=B7=B5?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=8F=90=E4=BA=A4=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=8F=90=E4=BA=A4=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tpm/challengesnew/TPMchallengesnew.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js b/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js index 7a6f1ec4b..1dd042605 100644 --- a/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js +++ b/public/react/src/modules/tpm/challengesnew/TPMchallengesnew.js @@ -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);