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 36b4c9c8ab..3852db12a7 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 @@ -158,7 +158,8 @@ public class MsHTTPSamplerProxy extends MsTestElement { if (!path.startsWith("/")) { path = "/" + path; } - path = sampler.getProtocol() + "://" + sampler.getDomain() + ":" + sampler.getPort() + path; + String port = sampler.getPort() != 80 ? ":" + sampler.getPort() : ""; + path = sampler.getProtocol() + "://" + sampler.getDomain() + port + path; } sampler.setPath(path); } diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue index 46f4e3dcd8..26762a67b0 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertionJsr223.vue @@ -23,7 +23,7 @@ - +
diff --git a/frontend/src/business/components/api/definition/components/module/ApiModule.vue b/frontend/src/business/components/api/definition/components/module/ApiModule.vue index ad7da90cd5..14cdfdb43f 100644 --- a/frontend/src/business/components/api/definition/components/module/ApiModule.vue +++ b/frontend/src/business/components/api/definition/components/module/ApiModule.vue @@ -180,10 +180,10 @@ } }, //创建根目录的模块---供父类使用 - createRootModel(){ + createRootModel() { let dataArr = this.$refs.nodeTree.extendTreeNodes; - if(dataArr.length>0){ - this.$refs.nodeTree.append({},dataArr[0]); + if (dataArr.length > 0) { + this.$refs.nodeTree.append({}, dataArr[0]); } }, exportAPI() { @@ -197,7 +197,6 @@ }, refresh() { this.list(); - this.$emit("refreshTable"); }, } }