diff --git a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue
index 60ef124715..13f043723f 100644
--- a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue
+++ b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue
@@ -244,6 +244,9 @@
});
},
list(data) {
+ if (data.protocol === "dubbo://") {
+ data.protocol = "DUBBO";
+ }
let url = "/api/module/list/" + getCurrentProjectID() + "/" + data.protocol;
this.result = this.$get(url, response => {
if (response.data != undefined && response.data != null) {
diff --git a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue
index 0e9f8d2806..cf5fa0edc0 100644
--- a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue
+++ b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue
@@ -6,7 +6,7 @@
{{data.index}}
{{title}}
- {{data.method}}
+ {{getMethod()}}
@@ -125,6 +125,17 @@
//this.$set(this.data, 'active', !this.data.active);
this.$emit('active');
},
+ getMethod() {
+ if (this.data.protocol === "HTTP") {
+ return this.data.method;
+ }
+ else if (this.data.protocol === "dubbo://") {
+ return "DUBBO";
+ }
+ else {
+ return this.data.protocol;
+ }
+ },
copyRow() {
this.$emit('copy');
},
diff --git a/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue b/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue
index 3e81f770a1..d028acef6b 100644
--- a/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue
+++ b/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue
@@ -13,7 +13,7 @@
-
+
@@ -32,6 +32,7 @@
data() {
return {
allSamplers: ELEMENTS.get('AllSamplerProxy'),
+ currentProtocol: "HTTP",
}
},
methods: {
@@ -63,7 +64,8 @@
}
});
},
- saveAsApi(){
+ saveAsApi() {
+ this.currentProtocol = this.data.protocol;
this.$refs.api.open(this.data);
}
}