瀏覽代碼

tab重设标题逻辑调整

zhuth 6 年之前
父節點
當前提交
63dc06542e
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
         },
 
         /**