mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 15:00:52 +00:00
优化获取附件分类列表
This commit is contained in:
parent
2764ead2da
commit
637aade62a
@ -77,7 +77,11 @@ class SystemAttachmentCategoryServices extends BaseServices
|
||||
if ($menu['pid'] == $pid) {
|
||||
unset($menusList[$k]);
|
||||
$menu['children'] = $this->tidyMenuTier($menusList, $menu['id']);
|
||||
if ($menu['children']) $menu['expand'] = true;
|
||||
if (count($menu['children'])) {
|
||||
$menu['expand'] = true;
|
||||
} else {
|
||||
unset($menu['children']);
|
||||
}
|
||||
$navList[] = $menu;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user