mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-14 05:03:49 +08:00
fix 一些使用问题
This commit is contained in:
@@ -118,7 +118,7 @@ export function getChildrenRouter(routerMap: Array<any>) {
|
||||
* 判断根路由 Router
|
||||
* */
|
||||
export function isRootRouter(item) {
|
||||
if (item.meta?.alwaysShow != true && item.children?.length === 1) {
|
||||
if (item.meta?.alwaysShow != true && item.children?.length === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user