mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 19:22:15 +08:00
refactor(claude-desktop): show badge only for providers requiring routing
Direct-mode providers no longer display a badge since routing is optional for them. Proxy-mode providers now show "需要路由" / "Requires routing" to clarify that local routing must be active.
This commit is contained in:
@@ -323,15 +323,12 @@ export function ProviderCard({
|
||||
)}
|
||||
|
||||
{appId === "claude-desktop" &&
|
||||
provider.category !== "official" && (
|
||||
provider.category !== "official" &&
|
||||
provider.meta?.claudeDesktopMode === "proxy" && (
|
||||
<span className="inline-flex items-center rounded-md bg-sky-100 px-1.5 py-0.5 text-[10px] font-semibold text-sky-700 dark:bg-sky-900/40 dark:text-sky-300">
|
||||
{provider.meta?.claudeDesktopMode === "proxy"
|
||||
? t("claudeDesktop.modeProxy", {
|
||||
defaultValue: "模型映射",
|
||||
})
|
||||
: t("claudeDesktop.modeDirect", {
|
||||
defaultValue: "直连",
|
||||
})}
|
||||
{t("claudeDesktop.modeProxy", {
|
||||
defaultValue: "需要路由",
|
||||
})}
|
||||
</span>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user