This commit is contained in:
2025-07-31 15:18:46 +08:00
parent ce50120e40
commit 9cea296e6c
7 changed files with 18 additions and 19 deletions

View File

@@ -7,8 +7,8 @@ const { data } = await useAsyncData('search-data', () => queryCollectionSearchSe
const fuse = new Fuse(data.value || [], {
keys: [
'title',
'description',
],
'description'
]
})
const result = computed<Array<{ item: typeof data.value[0] }>>(() => fuse.search(toValue(query)).slice(0, 10))