fix(接口自动化): 修复导出文件名称-项目名称错误问题 #1005112
This commit is contained in:
parent
13960fc9fb
commit
22e453d476
|
@ -810,6 +810,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"));
|
||||
|
@ -822,6 +827,8 @@ export default {
|
|||
this.buildApiPath(obj.data);
|
||||
downloadFile("Metersphere_Scenario_" + this.projectName + ".json", JSON.stringify(obj));
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
exportJmx() {
|
||||
let param = {};
|
||||
|
|
Loading…
Reference in New Issue