mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: show engin type icon after chat created
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -485,6 +485,7 @@ function onChatCreatedQuick(chat: ChatInfo) {
|
||||
chatList.value.unshift(chat)
|
||||
currentChatId.value = chat.id
|
||||
currentChat.value = chat
|
||||
console.log(chat)
|
||||
onChatCreated(chat)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user