mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Menu.php
This commit is contained in:
parent
4c9e57a9e8
commit
9cea3f66a2
@ -108,7 +108,7 @@ class Menu extends Controller
|
||||
/* 读取系统功能节点 */
|
||||
$this->auths = [];
|
||||
$this->nodes = MenuService::instance()->getList();
|
||||
foreach (NodeService::instance()->getMethods() as $node => $item) {
|
||||
foreach (NodeService::instance()->getMethods($this->app->isDebug()) as $node => $item) {
|
||||
if ($item['isauth'] && substr_count($node, '/') >= 2) {
|
||||
$this->auths[] = ['node' => $node, 'title' => $item['title']];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user