From d4832da6af045c03e6a20165ec3c4e1078cb87b1 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 29 Jul 2025 14:08:45 +0800 Subject: [PATCH] fix: show engin type icon after chat created --- backend/apps/chat/curd/chat.py | 1 + frontend/src/views/chat/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/apps/chat/curd/chat.py b/backend/apps/chat/curd/chat.py index 2d573070..3f10f678 100644 --- a/backend/apps/chat/curd/chat.py +++ b/backend/apps/chat/curd/chat.py @@ -189,6 +189,7 @@ def create_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj: if ds: chat_info.datasource_exists = True chat_info.datasource_name = ds.name + chat_info.ds_type = ds.type if require_datasource and ds: # generate first empty record diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 5a964f20..fde1e808 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -485,6 +485,7 @@ function onChatCreatedQuick(chat: ChatInfo) { chatList.value.unshift(chat) currentChatId.value = chat.id currentChat.value = chat + console.log(chat) onChatCreated(chat) }