@kevisual/router 0.0.6-alpha-4 → 0.0.6-alpha-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/router-browser.js +1 -1
- package/dist/router.js +1 -1
- package/package.json +1 -1
package/dist/router-browser.js
CHANGED
|
@@ -5649,7 +5649,7 @@ class QueryRouter {
|
|
|
5649
5649
|
const has = this.routes.find((r) => r.path === route.path && r.key === route.key);
|
|
5650
5650
|
if (has) {
|
|
5651
5651
|
// remove the old route
|
|
5652
|
-
this.routes = this.routes.filter((r) => r.
|
|
5652
|
+
this.routes = this.routes.filter((r) => r.id !== has.id);
|
|
5653
5653
|
}
|
|
5654
5654
|
this.routes.push(route);
|
|
5655
5655
|
}
|
package/dist/router.js
CHANGED
|
@@ -5669,7 +5669,7 @@ class QueryRouter {
|
|
|
5669
5669
|
const has = this.routes.find((r) => r.path === route.path && r.key === route.key);
|
|
5670
5670
|
if (has) {
|
|
5671
5671
|
// remove the old route
|
|
5672
|
-
this.routes = this.routes.filter((r) => r.
|
|
5672
|
+
this.routes = this.routes.filter((r) => r.id !== has.id);
|
|
5673
5673
|
}
|
|
5674
5674
|
this.routes.push(route);
|
|
5675
5675
|
}
|