mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
从数据库中生成菜单
This commit is contained in:
parent
021d983583
commit
bc84d1bb27
@ -52,9 +52,7 @@ class Menu extends BasicAdmin {
|
|||||||
*/
|
*/
|
||||||
protected function _index_data_filter(&$data) {
|
protected function _index_data_filter(&$data) {
|
||||||
foreach ($data as &$vo) {
|
foreach ($data as &$vo) {
|
||||||
if ($vo['url'] !== '#') {
|
($vo['url'] !== '#') && ($vo['url'] = url($vo['url']));
|
||||||
$vo['url'] = url($vo['url']);
|
|
||||||
}
|
|
||||||
$vo['ids'] = join(',', Tools::getArrSubIds($data, $vo['id']));
|
$vo['ids'] = join(',', Tools::getArrSubIds($data, $vo['id']));
|
||||||
}
|
}
|
||||||
$data = Tools::arr2table($data);
|
$data = Tools::arr2table($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user