fix(api): support params with value of undefined
This commit is contained in:
parent
249dd7b8b8
commit
57b9954d9c
|
@ -42,9 +42,11 @@ export default function parseURLParams(
|
|||
|
||||
try {
|
||||
value = param[1];
|
||||
|
||||
if (!dontParse) {
|
||||
value
|
||||
= JSON.parse(decodeURIComponent(value).replace(/\\&/, '&'));
|
||||
const decoded = decodeURIComponent(value).replace(/\\&/, '&');
|
||||
|
||||
value = decoded === 'undefined' ? undefined : JSON.parse(decoded);
|
||||
}
|
||||
} catch (e) {
|
||||
reportError(
|
||||
|
|
Loading…
Reference in New Issue