diff --git a/public/react/src/modules/tpm/challengesnew/TPMquestion.js b/public/react/src/modules/tpm/challengesnew/TPMquestion.js index c49be02a1..8fc2b1133 100644 --- a/public/react/src/modules/tpm/challengesnew/TPMquestion.js +++ b/public/react/src/modules/tpm/challengesnew/TPMquestion.js @@ -679,6 +679,7 @@ export default class TPMquestion extends Component { let id = this.props.match.params.shixunId; + let checkpointId=this.props.match.params.checkpointId let url; if(sumtype==="edit"){ let newquestioMDvalue = this.neweditanswerRef.current.getValue().trim(); @@ -781,7 +782,7 @@ export default class TPMquestion extends Component { description: '新建成功,请点击右侧加号继续添加', }); - window.location.href=`/shixuns/${this.props.match.params.shixunId}/challenges/${this.props.match.params.checkpointId}/editquestion/${response.data.challenge_choose_id}`; + window.location.href=`/shixuns/${id}/challenges/${checkpointId}/editquestion/${response.data.challenge_choose_id}`; // this.getanswer_subitlist() // this.gochooseid("/shixuns/"+this.props.match.params.shixunId+"/challenges/"+this.props.match.params.checkpointId+"/editquestion"+"/"+response.data.challenge_choose_id)