fix(接口测试): 修复自定义请求路径中带{}被编码的缺陷
--bug=1029753 --user=王孝刚 【接口测试】github#26488,【接口测试】接口自动化场景-自定义请求,当接口地址里含有变量,勾选引用环境,${变量名}的{}就会被转义编码成其他字符串 https://www.tapd.cn/55049933/s/1409990
This commit is contained in:
parent
1e6fed2e5a
commit
5a196fd50c
|
@ -170,7 +170,7 @@ export default {
|
||||||
if (reg.test(urlStr)) {
|
if (reg.test(urlStr)) {
|
||||||
let url = this.getURL(urlStr);
|
let url = this.getURL(urlStr);
|
||||||
if (url && url.pathname) {
|
if (url && url.pathname) {
|
||||||
this.request.path = url.pathname;
|
this.request.path = decodeURIComponent(url.pathname);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.request.path = this.request.url;
|
this.request.path = this.request.url;
|
||||||
|
|
Loading…
Reference in New Issue