From 56588fad0803a564bff3a33eff512309b466cebc Mon Sep 17 00:00:00 2001 From: luojiaquan <1583622118@qq.com> Date: Tue, 13 Oct 2026 17:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E8=BD=AE=E5=8F=96=E6=B6=88bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bms-front/src/components/TableCopyMenu/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bms-front/src/components/TableCopyMenu/index.vue b/bms-front/src/components/TableCopyMenu/index.vue index 8630feba..30938d7d 100644 --- a/bms-front/src/components/TableCopyMenu/index.vue +++ b/bms-front/src/components/TableCopyMenu/index.vue @@ -95,7 +95,9 @@ function onDocPointerDown(e) { function onDocKeydown(e) { if (e.key === 'Escape') close() } -function onWindowScroll() { +function onWindowScroll(e) { + // 菜单自身(列较多时出现内部滚动条)的滚轮/滚动条滚动不关闭菜单 + if (menuRef.value && e.target instanceof Node && menuRef.value.contains(e.target)) return close() }