fix(positions): 修复仓位管理点击市场链接打开两个标签页的问题

在市场列链接的 onClick 中增加 e.preventDefault(),阻止 <a> 默认行为,
避免与 window.open() 重复打开同一页面。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-09 02:41:59 +08:00
parent 17a6a4f314
commit 366d3d1b25
+1
View File
@@ -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')