Sfoglia il codice sorgente

Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

evoxwht 2 anni fa
parent
commit
a20838259c
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      crmeb/app/services/system/SystemRouteServices.php

+ 12 - 0
crmeb/app/services/system/SystemRouteServices.php

@@ -93,6 +93,18 @@ class SystemRouteServices extends BaseServices
                 }
                 }
             ])
             ])
             ->toArray();
             ->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);
         return get_tree_children($list);
     }
     }