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 = () => {