Skip to content

Commit 6861103

Browse files
author
aiql-admin
authored
Remove useless scroll
1 parent dc0ebf2 commit 6861103

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

index.html

-10
Original file line numberDiff line numberDiff line change
@@ -1114,19 +1114,10 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
11141114
return read(reader, target);
11151115
};
11161116

1117-
messageStore.$subscribe((args, state) => {
1118-
if (!messageStore.userMessage) {
1119-
asyncScrollToBottom()
1120-
}
1121-
})
1122-
1123-
/*
1124-
// it seems that watch has a small delay to scroll
11251117
watch(computed(() => messageStore.conversation),
11261118
(newValue, oldValue) => {
11271119
asyncScrollToBottom()
11281120
}, { deep: true });
1129-
*/
11301121

11311122
const asyncScrollToBottom = async () => {
11321123
await nextTick();
@@ -1169,7 +1160,6 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
11691160
const chatElement = document.querySelector(".chat-bot");
11701161
if (chatElement) {
11711162
chatElement.style.marginBottom = `${entry.contentRect.height}px`
1172-
asyncScrollToBottom()
11731163
}
11741164
}
11751165
}

0 commit comments

Comments
 (0)