Merge pull request #810 from nagisa77/codex/fix-channel-ui-scroll-to-bottom

fix(frontend): scroll to bottom on channel entry
This commit is contained in:
Tim
2025-09-01 11:30:40 +08:00
committed by GitHub

View File

@@ -334,6 +334,9 @@ onMounted(async () => {
if (currentUser.value) {
await fetchMessages(0)
await markConversationAsRead()
await nextTick()
// 初次进入频道时,平滑滚动到底部
scrollToBottomSmooth()
const token = getToken()
if (token && !isConnected.value) {
connect(token)