mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 04:03:42 +08:00
feat: 完成移动端前段框架搭建
This commit is contained in:
@@ -694,11 +694,12 @@ const chatName = ref('')
|
||||
// 搜索会话
|
||||
const searchChat = function () {
|
||||
if (chatName.value === '') {
|
||||
chatList.value = allChats.value
|
||||
return
|
||||
}
|
||||
const roles = [];
|
||||
for (let i = 0; i < allChats.value.length; i++) {
|
||||
if (allChats.value[i].title.indexOf(chatName.value) !== -1) {
|
||||
if (allChats.value[i].title.toLowerCase().indexOf(chatName.value.toLowerCase()) !== -1) {
|
||||
roles.push(allChats.value[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user