修改选择维修项目搜索功能

This commit is contained in:
zhouyanli
2026-06-24 17:21:36 +08:00
parent 1b2dd8d2f2
commit 0bc9bc25d5
2 changed files with 7 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ const searchKey = ref('')
const currentProjectList = computed(() => {
let list = projectList.value.filter(item => item.categoryId === activeCategory.value)
if (searchKey.value) {
list = list.filter(item => item.name.includes(searchKey.value))
list = list.filter(item => item.projectName.includes(searchKey.value))
}
return list
})