From cc9946de5aa4a798f61b3eabda41fe7c0e96f0a6 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Tue, 21 Feb 2023 15:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemMenusServices.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/system/SystemMenusServices.php b/crmeb/app/services/system/SystemMenusServices.php index f19f021ba..e2176f4a3 100644 --- a/crmeb/app/services/system/SystemMenusServices.php +++ b/crmeb/app/services/system/SystemMenusServices.php @@ -52,7 +52,9 @@ class SystemMenusServices extends BaseServices $data = []; foreach ($menusList as $item) { $item = $item->getData(); - $item['menu_path'] = '/' . config('app.admin_prefix', 'admin') . $item['menu_path']; + if (isset($item['menu_path'])) { + $item['menu_path'] = '/' . config('app.admin_prefix', 'admin') . $item['menu_path']; + } $data[] = $item; }