From 7b7d76f4aab157fc3300989ba0cb9ce12e2df75d Mon Sep 17 00:00:00 2001 From: p
Date: Fri, 14 Aug 2026 16:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=20tab=20=E5=90=8E?= =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E9=AB=98=E4=BA=AE=E9=80=89=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/index_tab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wwwroot/index_tab.js b/wwwroot/index_tab.js index 57ba462..98e33f2 100644 --- a/wwwroot/index_tab.js +++ b/wwwroot/index_tab.js @@ -34,6 +34,9 @@ this.content_buffer[desc.name] = w; // 即使 null 也记录(标记已存在,避免重复新增) this.cur_tab_name = desc.name; if (w) this.switch_content(w); + // 高亮新 tab 按钮:do_handle 会 select_item + set active; + // show_tabcontent 因 cur_tab_name 已设为 desc.name 而直接 return,不会二次切换 + if (this.toolbar && this.toolbar.click) this.toolbar.click(desc.name); }; // 修复 show_tabcontent 的 bug(cur_tab_name 赋值用了未定义变量 name)