Commit 52ccc99e by wangshuo

判断version

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