Skip to content

Commit

Permalink
perf: 优化网络重连聊天机制
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Mar 31, 2022
1 parent 78c766c commit e327311
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/assets/js/pages/manage/components/DialogWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export default {
'userId',
'cacheDialogs',
'dialogMsgs',
'wsOpenNum',
]),
dialogData() {
Expand Down Expand Up @@ -249,6 +250,11 @@ export default {
}
},
immediate: true
},
wsOpenNum(num) {
if (num <= 1) return
this.$store.dispatch("getDialogMsgs", this.dialogId);
}
},
Expand Down

0 comments on commit e327311

Please sign in to comment.