From 7eb4ef4e5d999cf076e5bbfd804f5ad71730456f Mon Sep 17 00:00:00 2001 From: hzm <934585316@qq.com> Date: Thu, 5 Feb 2026 21:50:58 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=A1=A8=E6=A0=BC=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/page.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/page.jsx b/app/page.jsx index 2cea20d..09ec78f 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -1592,8 +1592,12 @@ export default function HomePage() { // 点击页面其他区域时收起删除按钮 useEffect(() => { const handleClickOutside = (e) => { - // 如果点击的是删除按钮本身,不处理(删除逻辑会处理) - // 这里我们可以通过检查 swipedFundCode 是否存在来决定是否需要收起 + // 检查点击事件是否来自删除按钮 + // 如果点击的是 .swipe-action-bg 或其子元素,不执行收起逻辑 + if (e.target.closest('.swipe-action-bg')) { + return; + } + if (swipedFundCode) { setSwipedFundCode(null); }