From 87272fd62d7a1e46e121b4df92b32561c7a706f9 Mon Sep 17 00:00:00 2001 From: Yunfei <687418+OtaconBYF@users.noreply.github.com> Date: Thu, 14 Mar 2019 16:12:47 +0800 Subject: [PATCH] fix[utils]: fixed param2Obj not decoding plus sign (#1712) --- src/utils/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index 2fcbba79..46dc8f66 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -140,7 +140,8 @@ export function param2Obj(url) { decodeURIComponent(search) .replace(/"/g, '\\"') .replace(/&/g, '","') - .replace(/=/g, '":"') + + .replace(/=/g, '":"') + .replace(/\+/g, ' ') + '"}' ) }