This commit is contained in:
花裤衩 2020-06-15 17:15:29 +08:00
parent 88303a2959
commit 4958db1bad

View File

@ -2,7 +2,7 @@
* @param {string} url
* @returns {Object}
*/
export function param2Obj(url) {
function param2Obj(url) {
const search = decodeURIComponent(url.split('?')[1]).replace(/\+/g, ' ')
if (!search) {
return {}