benson0388 发表于 2018-10-20 17:19:26

采用shortcut方式显示菜单,如果让第一个菜单不展开

左侧菜单采用<t:menu style="shortcut" menuFun="${menuMap}"></t:menu>,默认登录后,第一个一级菜单是展开的,如何取消,不展开。如图:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM8AAACpCAIAAAADTv5PAAAQFklEQVR4nO2cW28bxxmG9xfwXv/BFAHDyn8QYF4ECVRBIrUtmqaBzNiWXbq1LIg2CkPiCijiIGpdK2E3OpiRbRo0FZUHVwrlyKyrGi1EKEDiuoXbOJHSqj7kABUyoOnF7GFmd3a5jJixEL0vXiS7szPfjjIPvpndcEd5/A2B4RZ6vLROCBkvrX/+6H+sx0vryqNvCAy30H60/fdrAsMtNGiD5dmPts2vCAy30KANlmc/2v7zFYHhFtqXti8JDLfQfrT9+0sidk1/IayGwmrsPdel97RQOHmuRv79ZTEWVkOcabl5KVGkTSYTHqHYe0X1JY9LL4zVrZLJhBoKa5PcqXHrWCIZcvbH+6bwd+NvQRuDkRsCnjYLhaWxpE3be1oorMYSmnv4rZgMKC7zmDLocHzTWy+NJSl/5kH9XFQNJYqUVNAm2X60ffGUOH3byGq9WfJFluKivWtefTfBDrbeG1ZfGKvTS5S2s7etanYrod9NqKGovuQsr5+NqqFE0QySPJvVX6CdMW6hnWVuZBW+ax+YEW7bDWFp9qNt4ylhXR0zJqPerGfJRlajg73xtNgbVjvGimejaiiq6yYEG7f1jrAaiurVp8VeQeqibYnum9s2npKN23rvWN2omdB6w2pHNBlKFDeeFnvNIGYPNZ3pKmu727AUB6XNb/hZCIS0JYpVkzZj1KN61bdbekJYx8hMGx70sO4Yq284adN0K8JtvQO0SbcfbetPSDOup6IsfFpvWO3QiqmoGkoUP9CSoXAytWzWieofPBHnttQyWX/SILetPyFmQGFPir1htUOrf6BZRCZ7E8lQWNNpJxPF9WWDtib/RnhXboa2rMe6nhk2BgI65Doz8MnUMvlA03sTlDa/buniOiYrzfVH040Dz2qwHPvR9vkTwjmrUWK4wmW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M8cz/0nW8wzqHhyKAa17IF2LICSf9Xp9FvovBXUPDs3A1j1gHmEE1iIIXXtbRCev0FobPs+ol9mAu1dfFoS6B4djIOsedK1F4Ovf+fxM6Bnd5aY9TyB6vqYd2G03VNiDjzXIZ3IMUt0DiVoE3d//tsXib05dFxtMNM8n9hKNz15Q96B/DErdA9laBL71lvz/APcBL+3fwLE0ciKLEphXXyMsn0Hdg1eBrGcAcBjAMyAKwDMgCsAzIArAMyAKwDMgCsAzIAoCPTvyN+WB1wnIZ0AUBHn2X0TbUQ0FCuD2AAAAAElFTkSuQmCCAA==

benson0388 发表于 2018-10-20 17:28:18

补充:我修改了ListtoMenu中的方法,结果显示这样了
页: [1]
查看完整版本: 采用shortcut方式显示菜单,如果让第一个菜单不展开