From b51bdbb9b3081a25130ba76f58d3f59a34c87cec Mon Sep 17 00:00:00 2001 From: slowlyo Date: Tue, 11 Jun 2024 16:16:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86,=20?= =?UTF-8?q?=E7=88=B6=E7=BA=A7=E8=8F=9C=E5=8D=95=E4=B8=8D=E8=83=BD=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Services/AdminMenuService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Services/AdminMenuService.php b/src/Services/AdminMenuService.php index 268cf1ee..262cbc8e 100644 --- a/src/Services/AdminMenuService.php +++ b/src/Services/AdminMenuService.php @@ -30,6 +30,10 @@ public function getTree() public function parentIsChild($id, $parent_id) { + if($id == $parent_id){ + return true; + } + $parent = $this->query()->find($parent_id); do {