From e5b88fcf6c9078679835de2f0d9a68627a4adbe9 Mon Sep 17 00:00:00 2001 From: yvan <8574526@qq.com> Date: Sat, 15 Aug 2026 23:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/view/init/index.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/src/view/init/index.vue b/web/src/view/init/index.vue index 4eaff12..82c36c3 100644 --- a/web/src/view/init/index.vue +++ b/web/src/view/init/index.vue @@ -8,7 +8,7 @@
-
+
@@ -21,7 +21,7 @@ tabindex="0" @scroll="updateNoticeReadState" > -
+

@@ -172,11 +172,14 @@ const noticeHint = computed(() => getScrollGateHint(canConfirmNotice.value)) let noticeResizeObserver const updateNoticeReadState = () => { - if (!noticeScrollRef.value) { + const scroll = noticeScrollRef.value + const content = noticeContentRef.value + if (!scroll || !content || scroll.clientHeight <= 0) { canConfirmNotice.value = false return } - canConfirmNotice.value = isScrollAtBottom(noticeScrollRef.value) + const contentFits = content.scrollHeight <= scroll.clientHeight + 1 + canConfirmNotice.value = contentFits || isScrollAtBottom(scroll) } const disconnectNoticeObserver = () => {