diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index 3d9966c32..b4846e187 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -365,11 +365,13 @@ class TPMIndex extends Component { this.props.history.replace(`/shixuns/${id}/challenges`); } else if (e.key === "2") { this.props.history.replace(`/shixuns/${id}/propaedeutics`); - } else if (e.key === "3") { - this.props.history.replace(`/shixuns/${id}/repository`); - } else if (e.key === "4") { - this.props.history.replace(`/shixuns/${id}/secret_repository`); - } else if (e.key === "5") { + }else if(e.key==="3"){ + window.location.href=`/shixuns/${id}/repository`; + // this.props.history.replace(`/shixuns/${id}/repository`); + }else if(e.key==="4"){ + window.location.href=`/shixuns/${id}/secret_repository`; + // this.props.history.replace(`/shixuns/${id}/secret_repository`); + }else if(e.key==="5"){ this.props.history.replace(`/shixuns/${id}/collaborators`); } else if (e.key === "6") { this.props.history.replace(`/shixuns/${id}/dataset`);