fix(接口测试): 解决创建新版本失败版本弹窗一直loading的问题
--user=郭雨琦 --bug=1012839 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001012839
This commit is contained in:
parent
f63acc306e
commit
f468c6d75a
|
@ -1531,6 +1531,10 @@ export default {
|
|||
this.$emit('refresh', this.currentScenario);
|
||||
resolve();
|
||||
});
|
||||
} else {
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -367,6 +367,9 @@ export default {
|
|||
this.createNewVersionVisible = true;
|
||||
} else {
|
||||
this.saveApi();
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
del(row) {
|
||||
|
|
|
@ -691,7 +691,6 @@ export default {
|
|||
// 创建新版本
|
||||
this.httpForm.versionId = row.id;
|
||||
this.httpForm.versionName = row.name;
|
||||
|
||||
this.$set(this.httpForm, 'newVersionRemark', !!this.httpForm.remark);
|
||||
this.$set(this.httpForm, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0);
|
||||
this.$set(this.httpForm, 'newVersionCase', this.httpForm.caseTotal > 0);
|
||||
|
@ -704,6 +703,13 @@ export default {
|
|||
this.createNewVersionVisible = true;
|
||||
} else {
|
||||
this.saveApi();
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
},error => {
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -372,6 +372,9 @@ export default {
|
|||
this.createNewVersionVisible = true;
|
||||
} else {
|
||||
this.saveApi();
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
del(row) {
|
||||
|
|
|
@ -502,6 +502,9 @@ export default {
|
|||
this.createNewVersionVisible = true;
|
||||
} else {
|
||||
this.saveApi();
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
|
@ -309,6 +309,9 @@ export default {
|
|||
},
|
||||
save(newVersion) {
|
||||
if (!this.validTest()) {
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!this.test.versionId) {
|
||||
|
@ -327,6 +330,10 @@ export default {
|
|||
});
|
||||
this.getVersionHistory();
|
||||
}
|
||||
}, error => {
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
saveAndRun() {
|
||||
|
|
|
@ -1011,6 +1011,9 @@ export default {
|
|||
this.$refs.selectPropDialog.open();
|
||||
} else {
|
||||
this.saveCase();
|
||||
if (this.$refs.versionHistory) {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.$refs.versionHistory.loading = false;
|
||||
|
|
Loading…
Reference in New Issue