no message

This commit is contained in:
kuaifan 2025-03-11 17:40:29 +08:00
parent 3c49e96e02
commit 3b7bcbc14a
2 changed files with 5 additions and 2 deletions

View File

@ -1981,3 +1981,4 @@ API请求的URL路径
即将到期 即将到期
创建任务 创建任务
在消息中打开

View File

@ -879,6 +879,7 @@ export default {
msgChangeCache: {}, msgChangeCache: {},
unreadOne: 0, // id unreadOne: 0, // id
startMsgId: 0, // id
topPosLoad: 0, // topPosLoad: 0, //
positionLoad: 0, // positionLoad: 0, //
positionShow: false, // positionShow: false, //
@ -1213,11 +1214,11 @@ export default {
return null return null
}, },
positionMsg({msgNew, dialogData, allMsgs}) { positionMsg({msgNew, dialogData, allMsgs, startMsgId}) {
const {unread, unread_one, mention, mention_ids} = dialogData const {unread, unread_one, mention, mention_ids} = dialogData
const not = unread - msgNew const not = unread - msgNew
const array = [] const array = []
if (unread_one) { if (unread_one && unread_one < startMsgId) {
array.push({ array.push({
type: 'unread', type: 'unread',
label: this.$L(`未读消息${not}`), label: this.$L(`未读消息${not}`),
@ -3025,6 +3026,7 @@ export default {
return return
} }
const key = this.scrollDirection === 'down' ? 'next_id' : 'prev_id'; 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++) { for (let i = range.start; i <= range.end; i++) {
if (!this.allMsgs[i]) { if (!this.allMsgs[i]) {
continue continue