mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-08 23:45:35 +00:00
fix: 部分机型首次打开聊天窗口不显示聊天记录的问题
This commit is contained in:
parent
c676a3037c
commit
d4ee87f324
@ -482,7 +482,6 @@
|
||||
</template>
|
||||
</Modal>
|
||||
|
||||
|
||||
<!-- 设置待办 -->
|
||||
<Modal
|
||||
v-model="todoSettingShow"
|
||||
@ -673,7 +672,6 @@ export default {
|
||||
msgActivity: false, // 消息活动中
|
||||
msgPrepared: false, // 消息已准备
|
||||
|
||||
|
||||
focusLazy: false,
|
||||
focusTimer: null,
|
||||
|
||||
@ -1338,7 +1336,7 @@ export default {
|
||||
}
|
||||
const historyLength = this.allMsgs.length
|
||||
const historyLastId = historyLength > 0 ? this.allMsgs[historyLength - 1].id : 0
|
||||
if ($A.isIos() && list.length !== historyLength) {
|
||||
if ($A.isIos() && list.length !== historyLength && this.$refs.scroller) {
|
||||
// 隐藏区域,让iOS断触
|
||||
const scrollEl = this.$refs.scroller.$el
|
||||
scrollEl.style.visibility = 'hidden'
|
||||
@ -1355,7 +1353,6 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
'allMsgs.length' () {
|
||||
if (this.stickToBottom) {
|
||||
this.onToBottom()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user