Przeglądaj źródła

修复创建菜单报错

liaofei 2 lat temu
rodzic
commit
cc9946de5a

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