mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
权限管理接口优化
This commit is contained in:
parent
6d58ab996e
commit
a6c1d7c777
@ -97,8 +97,11 @@ class SystemRouteServices extends BaseServices
|
||||
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';
|
||||
if (isset($v['cate_id']) && isset($v['method'])) {
|
||||
if ($v['method'] === 'DELETE') {
|
||||
$v['method'] = 'DEL';
|
||||
}
|
||||
$v['pid'] = $v['cate_id'];
|
||||
$list[$key]['children'][$k] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user