From f38d5810d91101c1ec38f1270c57302bfdf92a0f 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 fbcb4602..ebe58ff8 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -136,7 +136,8 @@ export function param2Obj(url) { decodeURIComponent(search) .replace(/"/g, '\\"') .replace(/&/g, '","') - .replace(/=/g, '":"') + + .replace(/=/g, '":"') + .replace(/\+/g, ' ') + '"}' ) }