diff --git a/src/util/query.js b/src/util/query.js index a2f2a56cc..6919e149f 100644 --- a/src/util/query.js +++ b/src/util/query.js @@ -63,7 +63,7 @@ function parseQuery (query: string): Dictionary { const key = decode(parts.shift()) const val = parts.length > 0 ? decode(parts.join('=')) : null - if (res[key] === undefined) { + if (res.hasOwnProperty(key) === false) { res[key] = val } else if (Array.isArray(res[key])) { res[key].push(val)