ソースを参照

修复创建菜单报错

liaofei 2 年 前
コミット
cc9946de5a
1 ファイル変更3 行追加1 行削除
  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;
         }