From f67176459acb7c2f0d797ed0a9cd34c1f08938d9 Mon Sep 17 00:00:00 2001 From: fengpu <18691763612@163.com> Date: Tue, 21 Jul 2026 10:57:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E9=A1=B5=E7=82=B9=E5=87=BB=E9=A1=B5=E9=9D=A2=E6=80=BB=E8=A7=88?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E6=89=93=E5=BC=80=E4=B8=A4=E4=B8=AAtab?= =?UTF-8?q?=E7=9A=84=E5=9B=9E=E5=BD=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0603113 提交重构 popover 为延迟渲染模式后,popover DOM 改由 togglePop 函数首次点击时动态构建,但 insertAdjacentHTML 模板漏加 onclick= "event.stopPropagation()",导致 popover 内 点击事件冒泡到父级 module-card 触发 window.open 打开模块入口页,与 默认跳转叠加 造成点击"页面总览"等列表项时同时打开两个 tab。与 5c518cb 同一根因, 修复方式一致:恢复 popover 容器上的 stopPropagation。 Co-Authored-By: Claude Opus 4.7 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1e5e4bc..0b734e3 100644 --- a/index.html +++ b/index.html @@ -994,7 +994,7 @@ function togglePop(uid, e) { }).join(''); const countEl = document.querySelector('[data-pop="' + uid + '"]'); if (countEl) { - countEl.insertAdjacentHTML('afterend', '
页面列表
' + popItems + '
'); + countEl.insertAdjacentHTML('afterend', '
页面列表
' + popItems + '
'); el = document.getElementById('pop-' + uid); } }