This commit is contained in:
Luiz Silva 2025-09-08 15:04:38 -03:00
parent f2eea9962b
commit d72455e06b
4 changed files with 6 additions and 7 deletions

View file

@ -93,10 +93,10 @@ export class TipagemRotas<T extends { [q: string]: any }> {
*/
ir(query: T) {
if (this._acaoIr) {
this._acaoIr(this.endereco(query))
this._acaoIr(this.endereco({ ...query }))
} else {
if (typeof window != "undefined") {
window.location.href = this.endereco(query)
window.location.href = this.endereco({ ...query })
}
}
}
@ -134,5 +134,4 @@ export class TipagemRotas<T extends { [q: string]: any }> {
return queryObj as Partial<T>
}
}