mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-24 10:20:31 +00:00
no message
This commit is contained in:
parent
3c49e96e02
commit
3b7bcbc14a
@ -1981,3 +1981,4 @@ API请求的URL路径
|
|||||||
即将到期
|
即将到期
|
||||||
|
|
||||||
创建任务
|
创建任务
|
||||||
|
在消息中打开
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user