fix(接口测试): url 自动添加参数key为空
This commit is contained in:
parent
5d66fb3527
commit
1f1afa17ee
|
@ -156,7 +156,7 @@ export default {
|
||||||
let url = new URL(urlStr);
|
let url = new URL(urlStr);
|
||||||
url.searchParams.forEach((value, key) => {
|
url.searchParams.forEach((value, key) => {
|
||||||
if (key && value) {
|
if (key && value) {
|
||||||
this.request.parameters.splice(0, 0, new KeyValue({name: name, value: value}));
|
this.request.parameters.splice(0, 0, new KeyValue({name: key, value: value}));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return url;
|
return url;
|
||||||
|
|
Loading…
Reference in New Issue