build
This commit is contained in:
parent
7dd417a9fb
commit
556ea198e8
4 changed files with 6 additions and 6 deletions
|
|
@ -94,13 +94,13 @@ class TipagemRotas {
|
||||||
typeof window !== "undefined" ? window.location.href : "http://localhost"
|
typeof window !== "undefined" ? window.location.href : "http://localhost"
|
||||||
);
|
);
|
||||||
const query = url.searchParams;
|
const query = url.searchParams;
|
||||||
const queryObj = Object.fromEntries(query.entries());
|
let queryObj = Object.fromEntries(query.entries());
|
||||||
const hash = url.hash;
|
const hash = url.hash;
|
||||||
if (hash) {
|
if (hash) {
|
||||||
const hashObj = Object.fromEntries(
|
const hashObj = Object.fromEntries(
|
||||||
new URLSearchParams(hash.slice(1)).entries()
|
new URLSearchParams(hash.slice(1)).entries()
|
||||||
);
|
);
|
||||||
return { ...queryObj, ...hashObj };
|
queryObj = { ...queryObj, ...hashObj };
|
||||||
}
|
}
|
||||||
for (const chave in queryObj) {
|
for (const chave in queryObj) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.237.0",
|
"version": "0.242.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist-back/index.js",
|
"main": "./dist-back/index.js",
|
||||||
"module": "./dist-front/index.mjs",
|
"module": "./dist-front/index.mjs",
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ export class TipagemRotas<T extends { [q: string]: any }> {
|
||||||
: "http://localhost",
|
: "http://localhost",
|
||||||
)
|
)
|
||||||
const query = url.searchParams
|
const query = url.searchParams
|
||||||
const queryObj = Object.fromEntries(query.entries())
|
let queryObj = Object.fromEntries(query.entries())
|
||||||
|
|
||||||
// pegar hash
|
// pegar hash
|
||||||
const hash = url.hash
|
const hash = url.hash
|
||||||
|
|
@ -123,7 +123,7 @@ export class TipagemRotas<T extends { [q: string]: any }> {
|
||||||
const hashObj = Object.fromEntries(
|
const hashObj = Object.fromEntries(
|
||||||
new URLSearchParams(hash.slice(1)).entries(),
|
new URLSearchParams(hash.slice(1)).entries(),
|
||||||
)
|
)
|
||||||
return { ...queryObj, ...hashObj } as T
|
queryObj = { ...queryObj, ...hashObj } as T
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const chave in queryObj) {
|
for (const chave in queryObj) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue