diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue index d1b6f0918d..a1596704c6 100644 --- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue @@ -45,57 +45,11 @@ - - -

{{ $t('api_test.request.headers') }}

- - {{ - $t("commons.batch_add") - }} - - - -
- - - - - - - {{ $t("ui.browser") }} - - - - - - - - - {{ $t("ui.performance_mode") }} - - - - - - - - - - - - - +

{{ $t('api_test.request.headers') }}

+ + {{ $t("commons.batch_add") }} + +
{{ $t('commons.add') }} @@ -167,12 +121,10 @@ import {getUUID} from "../../utils"; import {KeyValue} from "../../model/EnvTestModel"; import Vue from "vue"; import BatchAddParameter from "./commons/BatchAddParameter"; -import FormSection from "metersphere-frontend/src/components/form/FormSection"; -import MsInstructionsIcon from 'metersphere-frontend/src/components/MsInstructionsIcon'; export default { name: "MsEnvironmentHttpConfig", - components: {MsApiKeyValue, MsSelectTree, MsTableOperatorButton, BatchAddParameter, FormSection, MsInstructionsIcon}, + components: {MsApiKeyValue, MsSelectTree, MsTableOperatorButton, BatchAddParameter}, props: { httpConfig: new HttpConfig(), projectId: String, @@ -213,21 +165,9 @@ export default { socket: "", domain: "", port: 0, - headers: [new KeyValue()], - headlessEnabled: true, - browser: 'CHROME' + headers: [new KeyValue()] }, - beforeCondition: {}, - browsers: [ - { - label: this.$t("chrome"), - value: "CHROME", - }, - { - label: this.$t("firefox"), - value: "FIREFOX", - }, - ], + beforeCondition: {} }; }, watch: { @@ -349,7 +289,7 @@ export default { list() { if (this.projectId) { this.result = getApiModuleByProjectIdAndProtocol(this.projectId, "HTTP").then((response) => { - if (response.data && response.data !== null) { + if (response.data && response.data !== null) { this.moduleOptions = response.data; } }); diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index 9c1799bbb6..91a9ded583 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -18,18 +18,12 @@ :content="$t('commons.import')" @click="importJSON" /> - - - - {{ $t('envrionment.export_variable_tip') }} - - - + - - - - - - - - - @@ -173,14 +128,14 @@ sortable >