From 72e97cc7909af2e5dab26ce7816a03959474973f Mon Sep 17 00:00:00 2001 From: shy3130 Date: Thu, 15 Oct 2026 12:27:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E7=AB=AF=E7=82=B9=E6=B5=8B=E9=80=9F?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E6=8C=89=E9=92=AE=E6=89=93=E5=BC=80=E5=8D=B3?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不再要求测速成功才出现, 测速期间保持可点击。 --- frontend/src/components/EndpointTestDialog.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/EndpointTestDialog.tsx b/frontend/src/components/EndpointTestDialog.tsx index ca669d1b..c9bf6ab1 100644 --- a/frontend/src/components/EndpointTestDialog.tsx +++ b/frontend/src/components/EndpointTestDialog.tsx @@ -167,7 +167,6 @@ function EpRow({ ep, result, testing, isCurrent, isFree, canUsePremium, switchin onApply: (url: string) => void }) { const isError = result && !result.ok - const canApply = result?.ok && !testing && !isCurrent const isPremium = ep.premium === true const median = result?.median_ms @@ -240,7 +239,8 @@ function EpRow({ ep, result, testing, isCurrent, isFree, canUsePremium, switchin - {/* 应用按钮区域 —— Free 模式不可用任何付费端点;专线端点需 Expert+ */} + {/* 应用按钮区域 —— 打开即可应用(测速只是参考,不作为可用性门槛); + Free 模式不可用任何付费端点;专线端点需 Expert+ */} {isFree ? null : (isPremium && !canUsePremium) ? ( // 专线端点:需 Expert 及以上套餐权限,当前套餐不足,不可应用 Expert+ - ) : canApply ? ( + ) : isCurrent ? null : ( - ) : null} + )} ) }