From a502e13230ed73e2aad085ba6d4548a45d740610 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Tue, 11 Apr 2023 17:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemRouteServices.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); }