From 6fa3db3369293bd6871907c7ea6f275e56bab501 Mon Sep 17 00:00:00 2001 From: Yunfei Date: Thu, 14 Mar 2019 13:47:45 +0800 Subject: [PATCH] fix[utils]: fixed param2Obj not decoding plus sign --- 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, ' ') + '"}' ) }