From abb3dd0f556b6a225978d386b60818fb065d5195 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 29 Mar 2023 10:55:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=E5=A4=84?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=AF=A5=E5=8F=98=E9=87=8F=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=97=B6=EF=BC=8C=E5=8F=91=E7=8E=B0=E4=BC=9A?= =?UTF-8?q?=E6=8A=8A=E5=8F=98=E9=87=8F=E5=90=8D=E7=9A=84=E5=A4=A7=E5=86=99?= =?UTF-8?q?=E5=8F=98=E6=88=90=E5=B0=8F=E5=86=99=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024836 --user=王孝刚 【接口测试】github#23079,【环境配置】通用配置处配置含有英文大写变量名,HTTP配置处引用该变量进行保存时,发现会把变量名的大写变成小写 https://www.tapd.cn/55049933/s/1356957 --- .../src/components/environment/EnvironmentHttpConfig.vue | 5 ++++- .../menu/environment/components/EnvironmentHttpConfig.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue index e9ccc64dd5..1397356ca5 100644 --- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue +++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue @@ -448,7 +448,10 @@ export default { return true; } this.condition.domain = decodeURIComponent(url.hostname); - + if (socket.startsWith("${")){ + let split = socket.split(":"); + this.condition.domain = split[0]; + } this.condition.port = url.port; let path = url.pathname === "/" ? "" : url.pathname; if (url.port) { diff --git a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue index 5ed0f26c86..403b4214fd 100644 --- a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue +++ b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue @@ -453,7 +453,10 @@ export default { return true; } this.condition.domain = decodeURIComponent(url.hostname); - + if (socket.startsWith("${")){ + let split = socket.split(":"); + this.condition.domain = split[0]; + } this.condition.port = url.port; let path = url.pathname === "/" ? "" : url.pathname; if (url.port) {