forked from AkkomaGang/admin-fe
Update index.js
This commit is contained in:
parent
56a048865d
commit
4fa07aea09
1 changed files with 3 additions and 4 deletions
|
@ -110,11 +110,10 @@
|
|||
|
||||
export function param2Obj(url) {
|
||||
const search = url.split('?')[1];
|
||||
if (search !== undefined) {
|
||||
return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');
|
||||
if (!search) {
|
||||
return {}
|
||||
}
|
||||
return {};
|
||||
|
||||
return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}');
|
||||
}
|
||||
|
||||
export function html2Text(val) {
|
||||
|
|
Loading…
Reference in a new issue