fix: import fix
This commit is contained in:
parent
50c87043c8
commit
871aac104a
@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/package",
|
||||
"name": "@kevisual/router",
|
||||
"version": "0.0.6-alpha-4",
|
||||
"version": "0.0.6-alpha-5",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
|
@ -274,7 +274,7 @@ export class QueryRouter {
|
||||
const has = this.routes.find((r) => r.path === route.path && r.key === route.key);
|
||||
if (has) {
|
||||
// remove the old route
|
||||
this.routes = this.routes.filter((r) => r.path === route.path && r.key === route.key);
|
||||
this.routes = this.routes.filter((r) => r.id !== has.id);
|
||||
}
|
||||
this.routes.push(route);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user