feat: 搜索时允许根据描述搜索和一些样式调整

This commit is contained in:
osiris
2024-05-14 15:05:57 +08:00
parent efc1cb52eb
commit c860a01416
9 changed files with 101 additions and 24 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ export default [
if (title != '') {
list = list.filter(item => {
let tmpValue = item.title.toLowerCase()
return tmpValue.indexOf(title.toLowerCase()) !== -1;
let tmpDesc = item.desc.toLowerCase()
return tmpValue.indexOf(title.toLowerCase()) !== -1 || tmpDesc.indexOf(title.toLowerCase()) !== -1;
});
}
//分类筛选