fix[utils]: fixed param2Obj not decoding plus sign (#1712)

This commit is contained in:
Yunfei 2019-03-14 16:12:47 +08:00 committed by Pan
parent b0e3dc8617
commit 87272fd62d
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ export function param2Obj(url) {
decodeURIComponent(search)
.replace(/"/g, '\\"')
.replace(/&/g, '","')
.replace(/=/g, '":"') +
.replace(/=/g, '":"')
.replace(/\+/g, ' ') +
'"}'
)
}