Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
b439ce60
Commit
b439ce60
authored
Aug 10, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:考试详情子路由跳转换位replace
parent
f62e8ec8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/modules/task-center/data-center/components/TestLinkTaskData.jsx
+4
-7
No files found.
src/modules/task-center/data-center/components/TestLinkTaskData.jsx
View file @
b439ce60
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment