【优化】临时提交

This commit is contained in:
cherishsince 2024-05-17 18:25:34 +08:00
parent 0569dd1a26
commit 2b38e62c85

View File

@ -106,8 +106,18 @@ const emits = defineEmits(['onConversationClick', 'onConversationClear', 'onConv
/**
* 对话 - 搜索
*/
const searchConversation = () => {
// TODO fan
const searchConversation = (e) => {
//
if (!searchName.value.trim().length) {
conversationMap.value = conversationTimeGroup(conversationList.value)
} else {
//
const filterValues = conversationList.value.filter(item => {
console.log('ss', item.title.indexOf(searchName.value))
return item.title.indexOf(searchName.value) !== -1
})
conversationMap.value = conversationTimeGroup(filterValues)
}
}
/**