diff --git a/frontend/src/business/components/api/definition/components/ApiConfig.vue b/frontend/src/business/components/api/definition/components/ApiConfig.vue
index cb26c7cb23..eb32702310 100644
--- a/frontend/src/business/components/api/definition/components/ApiConfig.vue
+++ b/frontend/src/business/components/api/definition/components/ApiConfig.vue
@@ -88,6 +88,9 @@
} else {
this.request = JSON.parse(this.currentApi.request);
}
+ if (!this.request.headers) {
+ this.request.headers = [];
+ }
this.currentApi.request = this.request;
return true;
}
@@ -135,6 +138,9 @@
if (!this.request.hashTree) {
this.request.hashTree = [];
}
+ if (!this.request.body.binary) {
+ this.request.body.binary = [];
+ }
// 处理导入数据缺失问题
if (this.response.body) {
let body = new Body();
@@ -145,6 +151,9 @@
if (!body.kvs) {
body.kvs = [];
}
+ if (!body.binary) {
+ body.binary = [];
+ }
this.response.body = body;
}
if (this.currentApi.moduleId && this.currentApi.moduleId === "root") {
diff --git a/frontend/src/business/components/api/definition/components/body/ApiBody.vue b/frontend/src/business/components/api/definition/components/body/ApiBody.vue
index 1e84c6a0c8..98900c9061 100644
--- a/frontend/src/business/components/api/definition/components/body/ApiBody.vue
+++ b/frontend/src/business/components/api/definition/components/body/ApiBody.vue
@@ -1,5 +1,5 @@
-
+
{{ $t('api_test.definition.request.body_form_data') }}
diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
index a88c3b11bd..afe4e5958e 100644
--- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
+++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
@@ -16,7 +16,7 @@
@click="active(apiCase)"/>
+ @blur="saveTestCase(apiCase)" placeholder="请输入用例名称"/>
{{apiCase.id ? apiCase.name:''}}
@@ -149,7 +149,7 @@
this.$emit('singleRun', data);
},
copyCase(data) {
- let obj = {name: "copy_" + data.name, priority: data.priority, active: false, request: data.request};
+ let obj = {name: "copy_" + data.name, priority: data.priority, active: true, request: data.request};
this.$emit('copyCase', obj);
},
@@ -182,6 +182,7 @@
}
let bodyFiles = this.getBodyUploadFiles(row);
row.projectId = getCurrentProjectID();
+ row.active = true;
row.apiDefinitionId = row.apiDefinitionId || this.api.id;
let url = "/api/testcase/create";
if (row.id) {
diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
index f715e84d86..8ecfbe2067 100644
--- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
+++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
@@ -187,7 +187,7 @@
} else {
request = JSON.parse(this.api.request);
}
- let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: false};
+ let obj = {apiDefinitionId: this.api.id, name: '', priority: 'P0', active: true};
obj.request = request;
this.apiCaseList.unshift(obj);
}
diff --git a/frontend/src/business/components/performance/report/components/LogDetails.vue b/frontend/src/business/components/performance/report/components/LogDetails.vue
index 3802182848..4ea9515240 100644
--- a/frontend/src/business/components/performance/report/components/LogDetails.vue
+++ b/frontend/src/business/components/performance/report/components/LogDetails.vue
@@ -1,119 +1,126 @@
-
+
- {{$t('load_test.download_log_file')}}
+ {{ $t('load_test.download_log_file') }}
diff --git a/frontend/src/business/index.html b/frontend/src/business/index.html
index b677562844..2ac2681e5d 100644
--- a/frontend/src/business/index.html
+++ b/frontend/src/business/index.html
@@ -4,7 +4,7 @@
-
+
MeterSphere
diff --git a/frontend/src/login/login.html b/frontend/src/login/login.html
index 909af4db2c..852ca19a90 100644
--- a/frontend/src/login/login.html
+++ b/frontend/src/login/login.html
@@ -4,7 +4,7 @@
-
+
MeterSphere