object -> array

This commit is contained in:
2025-03-17 09:22:02 +01:00
parent b694b14065
commit 3e7851aae2
2 changed files with 2 additions and 2 deletions

2
dist/router.js vendored
View File

@ -70,7 +70,7 @@ export default class Router {
}
use(obj) {
if (obj instanceof Router) {
this.routes = Object.assign(Object.assign({}, this.routes), obj.routes);
this.routes = [...this.routes, ...obj.routes];
this.sortRoutes();
}
if (obj instanceof Tpl) {