Skip to content

Commit 87272fd

Browse files
OtaconBYFPanJiaChen
authored andcommitted
fix[utils]: fixed param2Obj not decoding plus sign (#1712)
1 parent b0e3dc8 commit 87272fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ export function param2Obj(url) {
140140
decodeURIComponent(search)
141141
.replace(/"/g, '\\"')
142142
.replace(/&/g, '","')
143-
.replace(/=/g, '":"') +
143+
.replace(/=/g, '":"')
144+
.replace(/\+/g, ' ') +
144145
'"}'
145146
)
146147
}

0 commit comments

Comments
 (0)