From 3b7bcbc14ad0ddff894c61494298854c7f362e90 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 11 Mar 2025 17:40:29 +0800 Subject: [PATCH] no message --- language/original-web.txt | 1 + .../assets/js/pages/manage/components/DialogWrapper.vue | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/language/original-web.txt b/language/original-web.txt index 278a9f096..fccd81fec 100644 --- a/language/original-web.txt +++ b/language/original-web.txt @@ -1981,3 +1981,4 @@ API请求的URL路径 即将到期 创建任务 +在消息中打开 diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 95b74163a..7c6efefe9 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -879,6 +879,7 @@ export default { msgChangeCache: {}, unreadOne: 0, // 最早未读消息id + startMsgId: 0, // 可见区域第一个消息id topPosLoad: 0, // 置顶跳转加载中 positionLoad: 0, // 定位跳转加载中 positionShow: false, // 定位跳转显示 @@ -1213,11 +1214,11 @@ export default { return null }, - positionMsg({msgNew, dialogData, allMsgs}) { + positionMsg({msgNew, dialogData, allMsgs, startMsgId}) { const {unread, unread_one, mention, mention_ids} = dialogData const not = unread - msgNew const array = [] - if (unread_one) { + if (unread_one && unread_one < startMsgId) { array.push({ type: 'unread', label: this.$L(`未读消息${not}条`), @@ -3025,6 +3026,7 @@ export default { return } const key = this.scrollDirection === 'down' ? 'next_id' : 'prev_id'; + this.startMsgId = this.allMsgs[range.start]?.id || 0; for (let i = range.start; i <= range.end; i++) { if (!this.allMsgs[i]) { continue