Commit 2b38e62c by cherishsince

【优化】临时提交

parent 0569dd1a
...@@ -106,8 +106,18 @@ const emits = defineEmits(['onConversationClick', 'onConversationClear', 'onConv ...@@ -106,8 +106,18 @@ const emits = defineEmits(['onConversationClick', 'onConversationClear', 'onConv
/** /**
* 对话 - 搜索 * 对话 - 搜索
*/ */
const searchConversation = () => { const searchConversation = (e) => {
// TODO fan:待实现 // 恢复数据
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)
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment