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:
@@ -394,11 +394,8 @@ export function ProviderForm({
|
|||||||
);
|
);
|
||||||
}, [groupedPresets]);
|
}, [groupedPresets]);
|
||||||
|
|
||||||
// 判断是否显示端点测速(聚合服务、第三方和自定义类别)
|
// 判断是否显示端点测速(仅官方类别不显示)
|
||||||
const shouldShowSpeedTest =
|
const shouldShowSpeedTest = category !== "official";
|
||||||
category === "aggregator" ||
|
|
||||||
category === "third_party" ||
|
|
||||||
category === "custom";
|
|
||||||
|
|
||||||
// 使用 API Key 链接 hook (Claude)
|
// 使用 API Key 链接 hook (Claude)
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in New Issue
Block a user