Merge pull request #1708 from bosix/feature-1707
add option to allow params in menu.php
This commit is contained in:
commit
1a9989ed91
|
|
@ -76,7 +76,7 @@ class Tree {
|
|||
$item['children'] = [];
|
||||
|
||||
if ($type == 'menu') {
|
||||
$item['url'] = route($item['route']);
|
||||
$item['url'] = route($item['route'], $item['params'] ?? []);
|
||||
|
||||
if (strpos($this->current, $item['url']) !== false) {
|
||||
$this->currentKey = $item['key'];
|
||||
|
|
@ -106,4 +106,4 @@ class Tree {
|
|||
return 'active';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue