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

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

View File

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