|
@@ -79,7 +79,7 @@ class Menu extends Auth
|
|
|
$child = Dever::db('menu', 'manage')->select($where);
|
|
|
if ($child) {
|
|
|
foreach ($child as $v1) {
|
|
|
- if (($v1['level'] == 3) && $this->checkMenu($v1['id'])) {
|
|
|
+ if ($v1['show'] == 1 && !$this->checkMenu($v1['id'])) {
|
|
|
continue;
|
|
|
}
|
|
|
if (!$parent) {
|
|
@@ -97,7 +97,7 @@ class Menu extends Auth
|
|
|
$info['component'] = '@/dever/page/' . $v['path'];
|
|
|
}
|
|
|
if (!$child) {
|
|
|
- if (($v['level'] == 3) && $this->checkMenu($v['id'])) {
|
|
|
+ if ($v['show'] == 1 && !$this->checkMenu($v['id'])) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|