rabin 1 year ago
parent
commit
3dcafcf45f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/Menu.php

+ 2 - 2
api/Menu.php

@@ -79,7 +79,7 @@ class Menu extends Auth
         $child = Dever::db('menu', 'manage')->select($where);
         if ($child) {
             foreach ($child as $v1) {
-                if ($v1['show'] <= 2 && $this->checkMenu($v1['id'])) {
+                if ($v1['level'] == 3 && $v1['show'] <= 2 && $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['show'] <= 2 && $this->checkMenu($v['id'])) {
+            if ($v1['level'] == 3 && $v['show'] <= 2 && $this->checkMenu($v['id'])) {
                 return false;
             }
         }