chore: reset scrollToBottom

This commit is contained in:
ChenZhaoYu 2023-03-10 00:02:02 +08:00
parent e88b9bef13
commit 7021a08ecf
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ const chatStore = useChatStore()
useCopyCode() useCopyCode()
const { isMobile } = useBasicLayout() const { isMobile } = useBasicLayout()
const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat() const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat()
const { scrollRef, scrollToBottom, scrollToBottomIfAtBottom } = useScroll() const { scrollRef, scrollToBottom } = useScroll()
const { uuid } = route.params as { uuid: string } const { uuid } = route.params as { uuid: string }
@ -114,7 +114,7 @@ async function onConversation() {
requestOptions: { prompt: message, options: { ...options } }, requestOptions: { prompt: message, options: { ...options } },
}, },
) )
scrollToBottomIfAtBottom() scrollToBottom()
} }
catch (error) { catch (error) {
// //
@ -165,10 +165,10 @@ async function onConversation() {
requestOptions: { prompt: message, options: { ...options } }, requestOptions: { prompt: message, options: { ...options } },
}, },
) )
scrollToBottom()
} }
finally { finally {
loading.value = false loading.value = false
scrollToBottom()
} }
} }