feat: 完成移动端前段框架搭建

This commit is contained in:
RockYang
2023-06-24 11:45:26 +08:00
parent 063b5655f7
commit ad0f96fcb1
7 changed files with 335 additions and 105 deletions

View File

@@ -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]);
}
}