fix(接口测试): url 自动添加参数key为空

This commit is contained in:
chenjianxing 2020-09-28 10:05:30 +08:00
parent 5d66fb3527
commit 1f1afa17ee
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ export default {
let url = new URL(urlStr);
url.searchParams.forEach((value, key) => {
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;