Pre Merge pull request !492 from amplam/1.x

pull/492/MERGE
amplam 2025-04-30 10:08:28 +00:00 committed by Gitee
commit 557b989298
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 8 additions and 4 deletions

View File

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