Explorar o código

Merge branch 'v4.7.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v4.7.0dev

sugar1569 %!s(int64=2) %!d(string=hai) anos
pai
achega
b0fdfa66ae
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      crmeb/app/services/system/SystemMenusServices.php

+ 3 - 1
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;
         }