From 366d3d1b25c0e22261d8afbdaaa716ec99a67264 Mon Sep 17 00:00:00 2001 From: WrBug Date: Mon, 9 Feb 2026 02:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(positions):=20=E4=BF=AE=E5=A4=8D=E4=BB=93?= =?UTF-8?q?=E4=BD=8D=E7=AE=A1=E7=90=86=E7=82=B9=E5=87=BB=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=89=93=E5=BC=80=E4=B8=A4=E4=B8=AA=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E9=A1=B5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在市场列链接的 onClick 中增加 e.preventDefault(),阻止 默认行为, 避免与 window.open() 重复打开同一页面。 Co-authored-by: Cursor --- frontend/src/pages/PositionList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/PositionList.tsx b/frontend/src/pages/PositionList.tsx index a877c20..93a83e8 100644 --- a/frontend/src/pages/PositionList.tsx +++ b/frontend/src/pages/PositionList.tsx @@ -875,6 +875,7 @@ const PositionList: React.FC = () => { : null const handleTitleClick = (e: React.MouseEvent) => { + e.preventDefault() e.stopPropagation() if (url) { window.open(url, '_blank', 'noopener,noreferrer')