From 7305b1124b94bb8acd3f5b2c6929964363eae6e2 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 7 Nov 2025 11:25:55 +0800 Subject: [PATCH] fix(forms): show endpoint input for all non-official providers Previously, endpoint URL input was only shown for aggregator, third_party, and custom categories. This excluded cn_official providers from managing custom endpoints. Changed logic to show endpoint input for all categories except official, which fixes the issue and simplifies the condition. --- src/components/providers/forms/ProviderForm.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index 6d6d6ef..1c43c11 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -394,11 +394,8 @@ export function ProviderForm({ ); }, [groupedPresets]); - // 判断是否显示端点测速(聚合服务、第三方和自定义类别) - const shouldShowSpeedTest = - category === "aggregator" || - category === "third_party" || - category === "custom"; + // 判断是否显示端点测速(仅官方类别不显示) + const shouldShowSpeedTest = category !== "official"; // 使用 API Key 链接 hook (Claude) const {