object -> array
This commit is contained in:
1 parent
b694b14065
commit
3e7851aae2
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user