Commit b439ce60 by wufan

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

parent f62e8ec8
...@@ -35,7 +35,7 @@ function TestLinkTaskData(props) { ...@@ -35,7 +35,7 @@ function TestLinkTaskData(props) {
const { contentId, paperId } = stageCustomerVOList[0].courseVOList[0]; const { contentId, paperId } = stageCustomerVOList[0].courseVOList[0];
const { match } = props; const { match } = props;
const path = `${match.url}/test-detail/1424698828831531009?paperId=1408034318353940481&userId=1351455073595023362&fromTrainingTask=true`; const path = `${match.url}/test-detail/1424698828831531009?paperId=1408034318353940481&userId=1351455073595023362&fromTrainingTask=true`;
window.RCHistory.push(path); window.RCHistory.replace(path);
} }
// const { stageExamCustomerVOList = [] } = data; // const { stageExamCustomerVOList = [] } = data;
// if (stageExamCustomerVOList.length) { // if (stageExamCustomerVOList.length) {
...@@ -51,12 +51,9 @@ function TestLinkTaskData(props) { ...@@ -51,12 +51,9 @@ function TestLinkTaskData(props) {
setActiveExam(_activeExam); setActiveExam(_activeExam);
setActiveStage(_activeStage); setActiveStage(_activeStage);
const { contentId, paperId } = _activeExam; const { contentId, paperId } = _activeExam;
const { match } = props;
window.RCHistory.push({ const path = `${match.url}/test-detail/1424698828831531009?paperId=1408034318353940481&userId=1351455073595023362&fromTrainingTask=true`;
pathname: `${ window.RCHistory.replace(path);
props.match.url
}/test-detail/${1424698828831531009}?paperId=${1408034318353940481}&userId=${1351455073595023362}&fromTrainingTask=true`,
});
// window.RCHistory.push({ // window.RCHistory.push({
// pathname: `${ // pathname: `${
// props.match.url // 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