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() { onClickEditor() {
this.$store.state.messengerSearchKey = {dialog: '', contacts: ''}
this.updateEmojiQuick(this.value) this.updateEmojiQuick(this.value)
}, },

View File

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