修复参数key 和 value填反了的bug
This commit is contained in:
parent
77db7f8464
commit
1f4e2e14da
|
@ -75,9 +75,9 @@
|
|||
|
||||
let parameters = [];
|
||||
let url = new URL(this.addProtocol(this.request.url));
|
||||
url.searchParams.forEach(function (key, value) {
|
||||
url.searchParams.forEach((value, key) => {
|
||||
if (key && value) {
|
||||
parameters.push(new KeyValue({name: key, value: value}));
|
||||
parameters.push(new KeyValue(key, value));
|
||||
}
|
||||
});
|
||||
// 添加一个空的,用于填写
|
||||
|
|
Loading…
Reference in New Issue