refactor:优化菜单管理控制器

This commit is contained in:
妙码生花 2023-06-24 02:45:28 +08:00
parent d8f721494b
commit c29df32039

View File

@ -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();