From d961c6d87f966790ad0a8a035affd8ca05b218ac Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Wed, 23 Dec 2020 12:54:58 +0800 Subject: [PATCH] update --- src/router/router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/router.js b/src/router/router.js index e8cfc9b8c..e22b4167b 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -298,11 +298,12 @@ return _.map(params, function (param, i) { // Don't decode the search params. if (i === params.length - 1) return param || null; - var resultParam = param; + var resultParam = null; if (param) { try { resultParam = decodeURIComponent(param); } catch (e) { + resultParam = param; } } return resultParam;