Skip to content

Commit f38d581

Browse files
OtaconBYFPanJiaChen
authored andcommitted
fix[utils]: fixed param2Obj not decoding plus sign (PanJiaChen#1712)
1 parent cf48ed2 commit f38d581

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
@@ -136,7 +136,8 @@ export function param2Obj(url) {
136136
decodeURIComponent(search)
137137
.replace(/"/g, '\\"')
138138
.replace(/&/g, '","')
139-
.replace(/=/g, '":"') +
139+
.replace(/=/g, '":"')
140+
.replace(/\+/g, ' ') +
140141
'"}'
141142
)
142143
}

0 commit comments

Comments
 (0)