fix: 修复 ip 地址登录系统报错,ts 方法兼容旧版本浏览器

This commit is contained in:
2026-06-24 16:58:49 +08:00
parent 7cf6c31da3
commit 1a91e16ac9
8 changed files with 393 additions and 129 deletions

View File

@@ -258,7 +258,7 @@ function selectedVariant(round: AgentTryoutRawRound) {
return (
round.variants.find(
(variant) => variant.variantIndex === round.selectedVariantIndex,
) || round.variants.at(-1)
) || round.variants[round.variants.length - 1]
);
}