perf: 优化会话搜索

This commit is contained in:
kuaifan 2023-04-01 16:16:24 +08:00
parent c8375b846a
commit 3c400af559
2 changed files with 5 additions and 2 deletions

View File

@ -815,6 +815,7 @@ export default {
},
onClickEditor() {
this.$store.state.messengerSearchKey = {dialog: '', contacts: ''}
this.updateEmojiQuick(this.value)
},

View File

@ -453,8 +453,10 @@ export default {
messengerSearchKey: {
handler(obj) {
this.dialogSearchKey = obj.dialog
this.contactsKey = obj.contacts
this.$nextTick(_ => {
this.dialogSearchKey = obj.dialog
this.contactsKey = obj.contacts
})
},
deep: true
},