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 花裤衩
parent cf48ed218b
commit f38d5810d9
1 changed files with 2 additions and 1 deletions

View File

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