mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
fix: 看不到未读消息定位提醒
This commit is contained in:
parent
3e4a119f61
commit
03f140fe3b
@ -72,7 +72,7 @@
|
|||||||
"vue-resize-observer": "^2.0.16",
|
"vue-resize-observer": "^2.0.16",
|
||||||
"vue-router": "^3.6.5",
|
"vue-router": "^3.6.5",
|
||||||
"vue-template-compiler": "~2.6.14",
|
"vue-template-compiler": "~2.6.14",
|
||||||
"vue-virtual-scroll-list-hi": "^2.3.5-14",
|
"vue-virtual-scroll-list-hi": "^2.3.5-15",
|
||||||
"vuedraggable": "^2.24.3",
|
"vuedraggable": "^2.24.3",
|
||||||
"vuex": "^3.6.2"
|
"vuex": "^3.6.2"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -204,8 +204,9 @@
|
|||||||
:disabled="scrollDisabled"
|
:disabled="scrollDisabled"
|
||||||
@activity="onActivity"
|
@activity="onActivity"
|
||||||
@scroll="onScroll"
|
@scroll="onScroll"
|
||||||
@range="onRange"
|
|
||||||
@totop="onPrevPage"
|
@totop="onPrevPage"
|
||||||
|
@range="onRange"
|
||||||
|
@active-range="onActiveRange"
|
||||||
|
|
||||||
@on-mention="onMention"
|
@on-mention="onMention"
|
||||||
@on-longpress="onLongpress"
|
@on-longpress="onLongpress"
|
||||||
@ -1524,6 +1525,7 @@ export default {
|
|||||||
this.msgType = ''
|
this.msgType = ''
|
||||||
this.searchKey = ''
|
this.searchKey = ''
|
||||||
this.unreadOne = 0
|
this.unreadOne = 0
|
||||||
|
this.startMsgId = 0
|
||||||
this.scrollTail = 0
|
this.scrollTail = 0
|
||||||
this.scrollOffset = 0
|
this.scrollOffset = 0
|
||||||
this.searchShow = false
|
this.searchShow = false
|
||||||
@ -1554,6 +1556,7 @@ export default {
|
|||||||
setTimeout(_ => {
|
setTimeout(_ => {
|
||||||
this.onSearchMsgId()
|
this.onSearchMsgId()
|
||||||
this.positionShow = this.readTimeout === null
|
this.positionShow = this.readTimeout === null
|
||||||
|
this.startMsgId === 0 && (this.startMsgId = data.list[data.list.length - 1]?.id || 0)
|
||||||
}, 100)
|
}, 100)
|
||||||
}).catch(_ => {
|
}).catch(_ => {
|
||||||
this.errorId = dialog_id
|
this.errorId = dialog_id
|
||||||
@ -3026,7 +3029,6 @@ 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
|
||||||
@ -3050,6 +3052,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onActiveRange(array) {
|
||||||
|
this.startMsgId = $A.runNum(array.length > 0 ? array[0] : 0)
|
||||||
|
},
|
||||||
|
|
||||||
onBack() {
|
onBack() {
|
||||||
if (!this.beforeBack) {
|
if (!this.beforeBack) {
|
||||||
return this.handleBack();
|
return this.handleBack();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user