mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
e06667ead8
commit
8f1b9bdf8a
1 changed files with 9 additions and 2 deletions
|
|
@ -129,7 +129,7 @@
|
|||
} else {
|
||||
return {
|
||||
...a,
|
||||
[modelIdx]: 0
|
||||
[modelIdx]: groupedMessageIds[modelIdx].messageIds.length - 1
|
||||
};
|
||||
}
|
||||
}, {});
|
||||
|
|
@ -149,7 +149,14 @@
|
|||
};
|
||||
|
||||
onMount(async () => {
|
||||
initHandler();
|
||||
await initHandler();
|
||||
await tick();
|
||||
|
||||
const messageElement = document.getElementById(`message-${messageId}`);
|
||||
console.log(messageElement);
|
||||
if (messageElement) {
|
||||
messageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue