diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index d28c214ca1..cef6cefeb8 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -148,7 +148,7 @@ {{ $t('api_test.request.headers') }} -
+
{{ headers.length - 1 }}
@@ -655,4 +655,13 @@ fieldset { display: none !important; } +.ms-header { + background: #783887; + color: white; + height: 18px; + font-size: xx-small; + border-radius: 50%; +} + + diff --git a/frontend/src/business/components/api/test/components/environment/ApiScenarioVariables.vue b/frontend/src/business/components/api/test/components/environment/ApiScenarioVariables.vue index 1ef9f6e9d6..20981239fb 100644 --- a/frontend/src/business/components/api/test/components/environment/ApiScenarioVariables.vue +++ b/frontend/src/business/components/api/test/components/environment/ApiScenarioVariables.vue @@ -80,7 +80,7 @@ + @click="openSetting(scope.row)" v-if="scope.row.type !=='LIST'" @change="change"/> diff --git a/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue b/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue index 5c7f141656..cb0cabc06d 100644 --- a/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue +++ b/frontend/src/business/components/api/test/components/environment/EnvironmentHttpConfig.vue @@ -451,20 +451,22 @@ export default { let params = data.split("\n"); let keyValues = []; params.forEach(item => { - let line = item.split(/:|:/); - let values = item.split(line[0] + ":"); - let required = false; - keyValues.push(new KeyValue({ - name: line[0], - required: required, - value: values[1], - type: "text", - valid: false, - file: false, - encode: true, - enable: true, - contentType: "text/plain" - })); + if (item) { + let line = item.split(/:|:/); + let values = item.split(line[0] + ":"); + let required = false; + keyValues.push(new KeyValue({ + name: line[0], + required: required, + value: values[1], + type: "text", + valid: false, + file: false, + encode: true, + enable: true, + contentType: "text/plain" + })); + } }); return keyValues; },