diff --git a/crmeb/app/services/system/SystemRouteServices.php b/crmeb/app/services/system/SystemRouteServices.php index 91aa8f302..a1f1fea42 100644 --- a/crmeb/app/services/system/SystemRouteServices.php +++ b/crmeb/app/services/system/SystemRouteServices.php @@ -93,6 +93,18 @@ class SystemRouteServices extends BaseServices } ]) ->toArray(); + + foreach ($list as $key => $item) { + if (!empty($item['children'])) { + foreach ($item['children'] as $k => $v) { + if (isset($v['cate_id']) && isset($v['method']) && $v['method'] === 'DELETE') { + $v['method'] = 'DEL'; + $list[$key]['children'][$k] = $v; + } + } + } + } + return get_tree_children($list); }