mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 07:04:24 +00:00
refactor:优化菜单管理控制器
This commit is contained in:
parent
d8f721494b
commit
c29df32039
@ -4,7 +4,6 @@ namespace app\admin\controller\auth;
|
||||
|
||||
use ba\Tree;
|
||||
use Throwable;
|
||||
use think\facade\Db;
|
||||
use app\admin\model\MenuRule;
|
||||
use app\common\controller\Backend;
|
||||
|
||||
@ -195,6 +194,10 @@ class Menu extends Backend
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜单列表
|
||||
* @throws Throwable
|
||||
*/
|
||||
protected function getMenus($where = []): array
|
||||
{
|
||||
$pk = $this->model->getPk();
|
||||
|
Loading…
Reference in New Issue
Block a user