fix(接口自动化): 修复导出文件名称-项目名称错误问题 #1005112
This commit is contained in:
parent
c16df08616
commit
a6978fcb92
|
@ -832,6 +832,11 @@ export default {
|
|||
},
|
||||
exportApi() {
|
||||
let param = {};
|
||||
this.projectId = getCurrentProjectID();
|
||||
this.$get('project/get/' + this.projectId, response => {
|
||||
let project = response.data;
|
||||
if (project) {
|
||||
this.projectName = project.name;
|
||||
this.buildBatchParam(param);
|
||||
if (param.ids === undefined || param.ids.length < 1) {
|
||||
this.$warning(this.$t("api_test.automation.scenario.check_case"));
|
||||
|
@ -844,6 +849,8 @@ export default {
|
|||
this.buildApiPath(obj.data);
|
||||
downloadFile("Metersphere_Scenario_" + this.projectName + ".json", JSON.stringify(obj));
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
exportJmx() {
|
||||
let param = {};
|
||||
|
|
Loading…
Reference in New Issue