rabin 1 năm trước cách đây
mục cha
commit
d24c47eab6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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'] == 1 && !$this->checkMenu($v1['id'])) {
+                if (($v1['level'] == 3 || $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['show'] == 1 && !$this->checkMenu($v['id'])) {
+            if (($v['level'] == 3 || $v['show'] != 1) && $this->checkMenu($v['id'])) {
                 return false;
             }
         }