Explorar o código

tab重设标题逻辑调整

zhuth %!s(int64=7) %!d(string=hai) anos
pai
achega
63dc06542e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      frontend/pc-web/app/util/BaseUtil.js

+ 2 - 2
frontend/pc-web/app/util/BaseUtil.js

@@ -52,8 +52,8 @@ Ext.define('school.util.BaseUtil', {
         refreshTabTitle: function (id, title) {
             var currentTab = this.getCurrentTab();
             currentTab.tabId = id;
-            currentTab.setTitle(title);
-            currentTab.setTooltip(title);
+            currentTab.tab.setText(title);
+            currentTab.tab.setTooltip(title);
         },
 
         /**