Commit 52ccc99e by wangshuo

判断version

parent 043f3d73
...@@ -24,8 +24,8 @@ export default class RecordPopup extends Component { ...@@ -24,8 +24,8 @@ export default class RecordPopup extends Component {
handleToTestRecord = (e, id) => { handleToTestRecord = (e, id) => {
e.preventDefault(); e.preventDefault();
const { history } = this.props; const { history } = this.props;
if(getParam('version')) { if(!getParam('version')) {
location.href = `${API.m}/levelTest/report?id=${id}&version=${getParam('version')}`; location.href = `${API.m}/levelTest/report?id=${id}`;
} else { } else {
location.href = `${API.m}/levelTest/report?id=${id}&version=${getParam('version')}`; 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