fix(接口自动化): 修复导出文件名称-项目名称错误问题 #1005112

This commit is contained in:
fit2-zhao 2021-07-13 18:23:34 +08:00 committed by fit2-zhao
parent c16df08616
commit a6978fcb92
1 changed files with 50 additions and 43 deletions

View File

@ -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 = {};