Explorar el Código

修复创建菜单报错

liaofei hace 2 años
padre
commit
cc9946de5a
Se han modificado 1 ficheros con 3 adiciones y 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;
         }