修复 Polymarket 链接:市场 slug 剥除温度后缀转为事件 URL

This commit is contained in:
2569718930@qq.com
2026-05-25 05:31:01 +08:00
parent 17c6c13d4f
commit d631ae08ad
@@ -365,7 +365,7 @@ export function LiveTemperatureThresholdChart({
{row?.market_slug ? (
<div className="shrink-0 border-t border-slate-200 px-3 py-2">
<Link
href={`https://polymarket.com/event/${row.market_slug}`}
href={`https://polymarket.com/event/${row.market_slug.replace(/-?\d+(?:-?\d+)*[cf](?:or\w+)?(?:for\w+)?$/i, "")}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 text-[11px] font-bold text-blue-600 hover:text-blue-800 transition-colors"