当菜单有下级的时候无法sidebar

可利用菜单的扩展属性,增加data-href属性实现
pull/493/head
amplam 2025-04-24 17:06:05 +08:00
parent b13ed1da95
commit 038b09c4e5
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ define(['fast', 'template', 'moment'], function (Fast, Template, Moment) {
});
$.each(badgeList, function (k, v) {
var anchor = top.window.$("li a[addtabs][url='" + k + "']");
anchor=anchor??top.window.$("li a[addtabs][data-href='" + k + "']");
if (anchor) {
top.window.$(".pull-right-container", anchor).html(v);
top.window.$(".nav-addtabs li a[node-id='" + anchor.attr("addtabs") + "'] .pull-right-container").html(v);