fix(menu): show dashboard overview as root item
This commit is contained in:
@@ -29,7 +29,7 @@ export default function useMenuTree() {
|
||||
}
|
||||
|
||||
// leaf node
|
||||
if (element.meta?.hideChildrenInMenu || !element.children) {
|
||||
if (element.meta?.hideChildrenInMenu || !element.children?.length) {
|
||||
element.children = [];
|
||||
return element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user