1
@@ -72,7 +72,14 @@ function pathErgodic(item) {
if(isChildrenList){
firstMenu = pathErgodic(i)
}else{
- firstMenu = i.path
+
+ if (!firstMenu && checkPathUrl(i.path)) {
+ firstMenu = i.path
+ } else {
+ if (!firstMenu && !i.hidden) {
+ firstMenu = item.path + '/' + i.path
+ }
}
} else {