mirror of
https://github.com/open-webui/open-webui
synced 2025-03-31 15:52:03 +00:00
refac
This commit is contained in:
parent
e06667ead8
commit
8f1b9bdf8a
@ -129,7 +129,7 @@
|
|||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
...a,
|
...a,
|
||||||
[modelIdx]: 0
|
[modelIdx]: groupedMessageIds[modelIdx].messageIds.length - 1
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, {});
|
}, {});
|
||||||
@ -149,7 +149,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
onMount(async () => {
|
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>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user