diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue
index 98f2a646d5..fef9f371cb 100644
--- a/frontend/src/business/components/api/automation/ApiAutomation.vue
+++ b/frontend/src/business/components/api/automation/ApiAutomation.vue
@@ -520,6 +520,10 @@ export default {
this.isSave = false;
this.removeTab(targetName);
}
+ if (tab) {
+ tab.splice(0, 1);
+ tab = undefined;
+ }
if (this.tabs && this.tabs.length === 0) {
this.refreshAll();
}
diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
index fda8a65c6c..425ef3e972 100644
--- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
+++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
@@ -621,11 +621,6 @@ export default {
},
openOrClose(node) {
node.expanded = !node.expanded;
- if (node.expanded) {
- this.nodeExpand(node.data);
- } else {
- this.nodeCollapse(node.data);
- }
},
hideNode(node) {
node.isLeaf = true;
diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
index 1e9a5f7470..c975831b8b 100644
--- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
+++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue
@@ -15,7 +15,15 @@
{{ $t("commons.batch_add") }}
-
+
@@ -30,7 +38,15 @@
{{ $t("commons.batch_add") }}
-
+
@@ -46,12 +62,29 @@
{{ $t("commons.batch_add") }}
-
+
-
+
@@ -60,11 +93,19 @@
{{ $t('api_test.definition.request.auth_config') }}
-
+
-
+
@@ -75,7 +116,14 @@
{{ request.preSize }}
-
+
@@ -84,7 +132,14 @@
{{ request.postSize }}
-
+
@@ -93,7 +148,14 @@
{{ request.ruleSize }}
-
+
@@ -239,15 +301,17 @@ export default {
hasPermission,
hasLicense,
tabClick() {
- if (this.activeName === 'preOperate') {
- this.$refs.preStep.filter();
- }
- if (this.activeName === 'postOperate') {
- this.$refs.postStep.filter();
- }
- if (this.activeName === 'assertionsRule') {
- this.$refs.assertionsRule.filter();
- }
+ this.$nextTick(() => {
+ if (this.activeName === 'preOperate' && this.$refs.preStep) {
+ this.$refs.preStep.filter();
+ }
+ if (this.activeName === 'postOperate' && this.$refs.postStep) {
+ this.$refs.postStep.filter();
+ }
+ if (this.activeName === 'assertionsRule' && this.$refs.assertionsRule) {
+ this.$refs.assertionsRule.filter();
+ }
+ });
},
generate() {
if (this.request.body && (this.request.body.jsonSchema || this.request.body.raw)) {
diff --git a/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue b/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue
index aeb1d5f119..9903160ef2 100644
--- a/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue
+++ b/frontend/src/business/components/api/definition/components/request/tcp/TcpBasisParameters.vue
@@ -8,15 +8,15 @@
- {{$t('api_test.definition.request.req_param')}}
+ {{ $t('api_test.definition.request.req_param') }}
-
+
-
+
@@ -24,7 +24,7 @@
+ :is-read-only="isReadOnly" v-if="activeName === 'script'"/>
@@ -110,256 +110,256 @@
diff --git a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue
index 0eb2e48338..1e991e99ad 100644
--- a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue
+++ b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue
@@ -2,28 +2,28 @@
-
-
+
+
-
+
-
+
-
+
-
+
-
+
diff --git a/frontend/src/business/components/api/definition/components/step/JmxStep.vue b/frontend/src/business/components/api/definition/components/step/JmxStep.vue
index 60555c5fad..93b6ed2bbd 100644
--- a/frontend/src/business/components/api/definition/components/step/JmxStep.vue
+++ b/frontend/src/business/components/api/definition/components/step/JmxStep.vue
@@ -257,20 +257,22 @@ export default {
return false;
},
filter() {
- let vars = [];
- if (this.tabType === 'pre') {
- vars = ["JSR223PreProcessor", "JDBCPreProcessor", "ConstantTimer"];
- } else if (this.tabType === 'post') {
- vars = ["JSR223PostProcessor", "JDBCPostProcessor", "Extract"];
- } else {
- vars = ["Assertions"];
- }
this.$nextTick(() => {
- if (this.$refs.generalSteps && this.$refs.generalSteps.filter) {
- this.$refs.generalSteps.filter(vars);
+ let vars = [];
+ if (this.tabType === 'pre') {
+ vars = ["JSR223PreProcessor", "JDBCPreProcessor", "ConstantTimer"];
+ } else if (this.tabType === 'post') {
+ vars = ["JSR223PostProcessor", "JDBCPostProcessor", "Extract"];
+ } else {
+ vars = ["Assertions"];
}
+ this.$nextTick(() => {
+ if (this.$refs.generalSteps && this.$refs.generalSteps.filter) {
+ this.$refs.generalSteps.filter(vars);
+ }
+ });
+ this.sort();
});
- this.sort();
},
addPre() {
let jsr223PreProcessor = createComponent("JSR223PreProcessor");