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.
This commit is contained in:
Jason
2025-11-07 11:25:55 +08:00
parent dc79c31148
commit 7305b1124b

View File

@@ -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 {