fix(positions): 修复仓位管理点击市场链接打开两个标签页的问题
在市场列链接的 onClick 中增加 e.preventDefault(),阻止 <a> 默认行为, 避免与 window.open() 重复打开同一页面。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user