mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-07 22:55:35 +00:00
perf: 优化网络重连聊天机制
This commit is contained in:
parent
78c766c52e
commit
e327311477
@ -166,6 +166,7 @@ export default {
|
|||||||
'userId',
|
'userId',
|
||||||
'cacheDialogs',
|
'cacheDialogs',
|
||||||
'dialogMsgs',
|
'dialogMsgs',
|
||||||
|
'wsOpenNum',
|
||||||
]),
|
]),
|
||||||
|
|
||||||
dialogData() {
|
dialogData() {
|
||||||
@ -249,6 +250,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
|
},
|
||||||
|
|
||||||
|
wsOpenNum(num) {
|
||||||
|
if (num <= 1) return
|
||||||
|
this.$store.dispatch("getDialogMsgs", this.dialogId);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user