From 3867eafaa8c266c0436341819c72327876136faa Mon Sep 17 00:00:00 2001 From: ebykov <31032118+ebykov@users.noreply.github.com> Date: Mon, 9 Aug 2021 15:51:46 +0300 Subject: [PATCH] fix parse query params --- src/util/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)