* Add url param for module menu component.

This commit is contained in:
caoyanyi
2023-05-16 17:03:30 +08:00
parent b7be1167e1
commit 05a913e1c6
+1 -1
View File
@@ -24,7 +24,7 @@ class moduleMenu extends wg
foreach($children as $child)
{
$item = array('key' => $child->id, 'text' => $child->name, 'items' => []);
$item = array('key' => $child->id, 'text' => $child->name, 'url' => $child->url, 'items' => []);
$items = $this->buildMenuTree($item['items'], $child->id);
if(count($items) !== 0) $item['items'] = $items;
else unset($item['items']);