mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化 完成点击主菜单时子菜单 跟着变
This commit is contained in:
parent
a82a944ba9
commit
4c1056ccab
@ -92,6 +92,12 @@
|
||||
vc.setMenus(vm.menus);
|
||||
vm.subMenus = _menu.childs;
|
||||
vm.curMenuName = _menu.name;
|
||||
|
||||
if (!_menu.childs || _menu.childs.length < 1) {
|
||||
return;
|
||||
}
|
||||
//选中第一个
|
||||
vm._gotoPage(_menu.childs[0].href, _menu.childs[0].name);
|
||||
//vc._fix_height()
|
||||
},
|
||||
miniMenu: function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user