From d0a1bbc97802d52b44190e513928c727bee5ed40 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 23 Feb 2022 18:06:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E8=BD=AC=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/dto/definition/request/sampler/MsHTTPSamplerProxy.java | 2 +- .../api/automation/scenario/component/StepExtendBtns.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index 6ba0ccefdc..6079f5c6fa 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -388,7 +388,7 @@ public class MsHTTPSamplerProxy extends MsTestElement { url = this.getUrl(); } if (isUrl()) { - if (this.isCustomizeReq()) { + if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) { url = this.getUrl(); sampler.setProperty("HTTPSampler.path", url); } 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 87ab0ef8c5..b09ccee756 100644 --- a/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue +++ b/frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue @@ -142,6 +142,7 @@ export default { }, saveAsApi() { this.currentProtocol = this.data.protocol; + this.data.customizeReq = false; this.$refs.api.open(this.data); } }