fix(测试跟踪): 功能用例复制报错
This commit is contained in:
parent
835aea45fa
commit
ff5189e428
|
@ -961,9 +961,13 @@ export default {
|
|||
},
|
||||
getVersionHistory(param) {
|
||||
this.$get('/test/case/versions/' + this.currentTestCaseInfo.id, response => {
|
||||
if (response.data.length > 0) {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.currentProjectId = response.data[i].projectId;
|
||||
}
|
||||
} else {
|
||||
this.currentProjectId = getCurrentProjectID();
|
||||
}
|
||||
this.versionData = response.data;
|
||||
this.$refs.versionHistory.cancelOtherInfo();
|
||||
this.$refs.versionHistory.loading = false;
|
||||
|
|
Loading…
Reference in New Issue