From ad378631835b282bb7ec6d17de3ceba4bacb2ffc Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 19 Aug 2025 10:36:27 +0800 Subject: [PATCH] fix: provider switch credential --- .../model-auth/authorized/authorized-item.tsx | 58 +++++++++---------- .../model-auth/authorized/index.tsx | 2 + .../model-auth/config-provider.tsx | 4 +- 3 files changed, 30 insertions(+), 34 deletions(-) diff --git a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx index 3bc317a594..60652c6c78 100644 --- a/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx +++ b/web/app/components/header/account-setting/model-provider-page/model-auth/authorized/authorized-item.tsx @@ -50,38 +50,34 @@ export const AuthorizedItem = ({ return (
- { - model && ( -
-
-
+
+
+ {title ?? model?.model} +
+ { + enableAddModelCredential && ( + - {title ?? model.model} -
- { - enableAddModelCredential && ( - - - - ) - } -
- ) - } + + + ) + } +
{ credentials.map(credential => ( (