Skip to content

Commit

Permalink
fix: 在测试集合中克隆测试用例时,如果该用例来自于外部项目,克隆结束后路由跳转到外部项目了 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
StaceyZhou2017 authored Jul 14, 2020
1 parent fe08743 commit d76c5ce
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ export default class InterfaceColMenu extends Component {
message.success('克隆用例成功');
let colId = res.data.data.col_id;
let projectId=res.data.data.project_id;
let currProjectId = that.props.curProject._id;
if (currProjectId !== projectId && currProjectId !== null) {
projectId = currProjectId;
}
await this.getList();
this.props.history.push('/project/' + projectId + '/interface/col/' + colId);
this.setState({
Expand Down

0 comments on commit d76c5ce

Please # to comment.