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

@ -78,10 +78,10 @@ class TipagemRotas {
*/
ir(query) {
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 });
}
}
}

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "p-comuns",
"version": "0.228.0",
"version": "0.229.0",
"description": "",
"main": "./dist-back/index.js",
"module": "./dist-front/index.mjs",

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>
}
}