Commit 61c7023f by FE

merge and del

parents d3390afd 153bfb2b
...@@ -488,7 +488,10 @@ class BlessingPreheat extends Component { ...@@ -488,7 +488,10 @@ class BlessingPreheat extends Component {
} }
{ {
showRecordList && showRecordList &&
<RecordPopup handleToHide={() => this.handleToHide('showRecordList')}/> <RecordPopup
history={this.props.history}
handleToHide={() => this.handleToHide('showRecordList')}
/>
} }
{ {
shareMark && shareMark &&
......
...@@ -23,10 +23,11 @@ export default class RecordPopup extends Component { ...@@ -23,10 +23,11 @@ export default class RecordPopup extends Component {
handleToTestRecord = (e, id) => { handleToTestRecord = (e, id) => {
e.preventDefault(); e.preventDefault();
const { history } = this.props;
if(getParam('version')) { if(getParam('version')) {
history.push(`/levelTest/report?id=${id}&version=${getParam('version')}`) location.href = `${API.m}/levelTest/report?id=${id}&version=${getParam('version')}`;
} else { } else {
history.push(`/levelTest/report?id=${id}`) location.href = `${API.m}/levelTest/report?id=${id}&version=${getParam('version')}`;
} }
} }
......
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