feat: 增加打开标签时追加tab前缀标题;优化代码结构

This commit is contained in:
augushong
2025-08-23 12:21:22 +08:00
parent 75309f3b7a
commit 892fd2b712
2 changed files with 34 additions and 10 deletions

View File

@@ -2281,9 +2281,9 @@
} else {
admin.findIndexPage(function (w) {
var menu = w.miniTab.searchMenu(option.backHref);
var title = option.backHref
var title = option.backHref;
if(menu){
if (menu) {
title = menu.title;
}
w.miniTab.create({
@@ -3172,6 +3172,25 @@
});
return iframeWindow;
},
getMenuInfoByTabId(tabId) {
var menuValue = null;
this.findIndexPage(function (w) {
var menu = w.miniTab.searchMenu(tabId);
if (menu) {
menuValue = menu;
}
});
return menuValue;
},
getMenuTitleByTabId(tabId, defaultValue) {
var menuTitle = defaultValue;
var menu = this.getMenuInfoByTabId(tabId);
if (menu) {
menuTitle = menu.title;
}
return menuTitle;
}
};