mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
perf: router
This commit is contained in:
@@ -120,7 +120,7 @@ const initRouter = (name: string) => {
|
||||
router.options.routes[0].children.push(v);
|
||||
// 最终路由进行升序
|
||||
ascending(router.options.routes[0].children);
|
||||
router.addRoute("home", v);
|
||||
if (!router.hasRoute(v?.name)) router.addRoute(v);
|
||||
}
|
||||
resolve(router);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user