From 5a196fd50c959342a044d26d257cc359f6fc1639 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 30 Aug 2023 15:47:42 +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=B7=AF=E5=BE=84=E4=B8=AD=E5=B8=A6{}=E8=A2=AB=E7=BC=96?= =?UTF-8?q?=E7=A0=81=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=1029753 --user=王孝刚 【接口测试】github#26488,【接口测试】接口自动化场景-自定义请求,当接口地址里含有变量,勾选引用环境,${变量名}的{}就会被转义编码成其他字符串 https://www.tapd.cn/55049933/s/1409990 --- .../business/automation/scenario/common/CustomizeReqInfo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/automation/scenario/common/CustomizeReqInfo.vue b/api-test/frontend/src/business/automation/scenario/common/CustomizeReqInfo.vue index ba5ca7245a..c063046be8 100644 --- a/api-test/frontend/src/business/automation/scenario/common/CustomizeReqInfo.vue +++ b/api-test/frontend/src/business/automation/scenario/common/CustomizeReqInfo.vue @@ -170,7 +170,7 @@ export default { if (reg.test(urlStr)) { let url = this.getURL(urlStr); if (url && url.pathname) { - this.request.path = url.pathname; + this.request.path = decodeURIComponent(url.pathname); } } else { this.request.path = this.request.url;