feat: update scrollToBottom()
This commit is contained in:
parent
ccefc8ca19
commit
2c76edaa32
2 changed files with 5 additions and 5 deletions
|
@ -144,7 +144,7 @@ if (accessToken && apiBase) {
|
|||
await nextTick();
|
||||
if (messagesElement.value) {
|
||||
console.log("scrolling to bottom");
|
||||
scrollToBottom(messagesElement);
|
||||
scrollToBottom(messagesElement.value);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -168,7 +168,7 @@ const route = useRoute();
|
|||
onMounted(async () => {
|
||||
if (import.meta.server) return;
|
||||
if (messagesElement.value) {
|
||||
scrollToBottom(messagesElement);
|
||||
scrollToBottom(messagesElement.value);
|
||||
let fetched = false;
|
||||
const amount = messages.value.length;
|
||||
let offset = messages.value.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue