对于首页侧边栏,如果配置了二级栏目,就忽略一级的url
Code Review By Rock Zhang
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -59,6 +59,8 @@ class SideModel | @@ -59,6 +59,8 @@ class SideModel | ||
59 | 59 | ||
60 | // 如果存在子菜单,就输出子菜单 | 60 | // 如果存在子菜单,就输出子菜单 |
61 | if (isset($value['sub']) && !empty($value['sub'])) { | 61 | if (isset($value['sub']) && !empty($value['sub'])) { |
62 | + unset($group[$groupKey]['url']); | ||
63 | + | ||
62 | $subs = array( | 64 | $subs = array( |
63 | array( | 65 | array( |
64 | 'textCn' => $group[$groupKey]['textCn'], | 66 | 'textCn' => $group[$groupKey]['textCn'], |
-
Please register or login to post a comment