mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
refac
This commit is contained in:
parent
e06667ead8
commit
8f1b9bdf8a
@ -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 New Issue
Block a user