Skip to content

Commit 5aec269

Browse files
committed
fix(Embedded): Embedded scrolling error
1 parent a656091 commit 5aec269

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/views/chat/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,12 @@ const sendMessage = async ($event: any = {}) => {
730730
731731
loading.value = true
732732
isTyping.value = true
733-
scrollTopVal = innerRef.value!.clientHeight
734-
scrollTime = setInterval(() => {
735-
scrollBottom()
736-
}, 300)
733+
if (isCompletePage.value) {
734+
scrollTopVal = innerRef.value!.clientHeight
735+
scrollTime = setInterval(() => {
736+
scrollBottom()
737+
}, 300)
738+
}
737739
await assistantPrepareSend()
738740
const currentRecord = new ChatRecord()
739741
currentRecord.create_time = new Date()

0 commit comments

Comments
 (0)