Commit b439ce60 by wufan

feat:考试详情子路由跳转换位replace

parent f62e8ec8
......@@ -35,7 +35,7 @@ function TestLinkTaskData(props) {
const { contentId, paperId } = stageCustomerVOList[0].courseVOList[0];
const { match } = props;
const path = `${match.url}/test-detail/1424698828831531009?paperId=1408034318353940481&userId=1351455073595023362&fromTrainingTask=true`;
window.RCHistory.push(path);
window.RCHistory.replace(path);
}
// const { stageExamCustomerVOList = [] } = data;
// if (stageExamCustomerVOList.length) {
......@@ -51,12 +51,9 @@ function TestLinkTaskData(props) {
setActiveExam(_activeExam);
setActiveStage(_activeStage);
const { contentId, paperId } = _activeExam;
window.RCHistory.push({
pathname: `${
props.match.url
}/test-detail/${1424698828831531009}?paperId=${1408034318353940481}&userId=${1351455073595023362}&fromTrainingTask=true`,
});
const { match } = props;
const path = `${match.url}/test-detail/1424698828831531009?paperId=1408034318353940481&userId=1351455073595023362&fromTrainingTask=true`;
window.RCHistory.replace(path);
// window.RCHistory.push({
// pathname: `${
// props.match.url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment