From a96733be467f6b1293cb3ad14b93daf853e85536 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 11 Nov 2026 15:20:43 +0800 Subject: [PATCH] fix: [Portal] Portal name and logo settings have not taken effect --- apps/chat/serializers/chat_authentication.py | 4 ++-- .../portal-conversation-list/index.vue | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/apps/chat/serializers/chat_authentication.py b/apps/chat/serializers/chat_authentication.py index 171b4c15e6d..5b37e464f8b 100644 --- a/apps/chat/serializers/chat_authentication.py +++ b/apps/chat/serializers/chat_authentication.py @@ -117,7 +117,7 @@ def profile(): "login_value": ["LOCAL"], "default_value": "LOCAL", "rsa_key": get_key_pair_by_sql().get("key"), - "meta": {}, + "meta": {"portal_name": ""}, "logo": "./favicon.ico", }, **result, @@ -132,7 +132,7 @@ def profile(): "login_value": auth_config.get("login_value", []), "default_value": auth_config.get("type", "LOCAL"), "rsa_key": get_key_pair_by_sql().get("key"), - "meta": {}, + "meta": {"portal_name": portal.name}, "logo": portal.logo or "./favicon.ico", }, **result, diff --git a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue index 24e557a9019..dd08bb29512 100644 --- a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue +++ b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue @@ -9,7 +9,9 @@ import AccountMenu from '../account-menu/index.vue' import { usePortalConversationListStore, type PortalApplicationGroup } from './index' import RenameConversation from '../../components/rename/index.vue' import { useMessageListStore } from '../../components/message-list/index' - +import auth from '@/api/chat/auth.ts' +import { useStore } from '@/stores/chat/index.ts' +const { auth: authStore }=useStore() defineOptions({ name: 'PortalConversationList' }) const msgs = useMessageListStore() @@ -78,6 +80,13 @@ const handleClearConversations = () => { clearing.value = false }) } +const name=computed(()=>{ + const meta:any=authStore.authProfile?.meta + return meta.portal_name ||'智能体门户' +}) +const logo=computed(()=>{ + return authStore.authProfile?.logo +})