.
This commit is contained in:
parent
f2eea9962b
commit
d72455e06b
4 changed files with 6 additions and 7 deletions
|
|
@ -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>
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue