This commit is contained in:
Luiz Silva 2025-09-26 09:45:46 -03:00
parent 7dd417a9fb
commit 556ea198e8
4 changed files with 6 additions and 6 deletions

View file

@ -115,7 +115,7 @@ export class TipagemRotas<T extends { [q: string]: any }> {
: "http://localhost",
)
const query = url.searchParams
const queryObj = Object.fromEntries(query.entries())
let queryObj = Object.fromEntries(query.entries())
// pegar hash
const hash = url.hash
@ -123,7 +123,7 @@ export class TipagemRotas<T extends { [q: string]: any }> {
const hashObj = Object.fromEntries(
new URLSearchParams(hash.slice(1)).entries(),
)
return { ...queryObj, ...hashObj } as T
queryObj = { ...queryObj, ...hashObj } as T
}
for (const chave in queryObj) {