1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-07 18:39:47 +08:00

fix[utils]: fixed param2Obj not decoding plus sign

This commit is contained in:
Yunfei 2019-03-14 13:47:45 +08:00
parent cf48ed218b
commit 6fa3db3369

View File

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