fix 一些使用问题

This commit is contained in:
maxbad
2023-05-07 14:16:46 +08:00
parent 9ac036a542
commit e8a0a41cb4
10 changed files with 24 additions and 23 deletions

View File

@@ -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;
}