diff --git a/catch/index/controller/Index.php b/catch/index/controller/Index.php index 9f54258..b64da43 100644 --- a/catch/index/controller/Index.php +++ b/catch/index/controller/Index.php @@ -1,51 +1,11 @@ user(); - - $permissionIds = $user->getPermissionsBy(); - - $menus = Permissions::whereIn('id', $permissionIds) - ->where('type', Permissions::MENU_TYPE) - ->field(['id', 'parent_id', 'permission_name', 'route']) - ->select()->toArray(); - - return $this->fetch([ - 'menus' => Tree::done($menus), - 'username' => $user->username, - ]); - } - - /** - * - * @time 2019年12月11日 - * @throws \Exception - * @return string - */ - public function theme(): string - { - return $this->fetch(); - } - /** * * @time 2019年12月12日