|
|
|
@ -24,7 +24,7 @@ const chatStore = useChatStore()
|
|
|
|
|
useCopyCode()
|
|
|
|
|
const { isMobile } = useBasicLayout()
|
|
|
|
|
const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat()
|
|
|
|
|
const { scrollRef, scrollToBottom } = useScroll()
|
|
|
|
|
const { scrollRef, scrollToBottom, scrollToBottomIfAtBottom } = useScroll()
|
|
|
|
|
|
|
|
|
|
const { uuid } = route.params as { uuid: string }
|
|
|
|
|
|
|
|
|
@ -113,14 +113,14 @@ async function onConversation() {
|
|
|
|
|
requestOptions: { prompt: message, options: { ...options } },
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
scrollToBottom()
|
|
|
|
|
scrollToBottomIfAtBottom()
|
|
|
|
|
}
|
|
|
|
|
catch (error) {
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
scrollToBottom()
|
|
|
|
|
scrollToBottomIfAtBottom()
|
|
|
|
|
}
|
|
|
|
|
catch (error: any) {
|
|
|
|
|
const errorMessage = error?.message ?? t('common.wrong')
|
|
|
|
|