From 7021a08ecf1d153987b44c06dece5968d6a63358 Mon Sep 17 00:00:00 2001 From: ChenZhaoYu <790348264@qq.com> Date: Fri, 10 Mar 2023 00:02:02 +0800 Subject: [PATCH] chore: reset scrollToBottom --- src/views/chat/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index 98b6230..c9b01f6 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -24,7 +24,7 @@ const chatStore = useChatStore() useCopyCode() const { isMobile } = useBasicLayout() const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat() -const { scrollRef, scrollToBottom, scrollToBottomIfAtBottom } = useScroll() +const { scrollRef, scrollToBottom } = useScroll() const { uuid } = route.params as { uuid: string } @@ -114,7 +114,7 @@ async function onConversation() { requestOptions: { prompt: message, options: { ...options } }, }, ) - scrollToBottomIfAtBottom() + scrollToBottom() } catch (error) { // @@ -165,10 +165,10 @@ async function onConversation() { requestOptions: { prompt: message, options: { ...options } }, }, ) + scrollToBottom() } finally { loading.value = false - scrollToBottom() } }