mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
Update threshold for search to 0.5
This commit is contained in:
@@ -36,7 +36,7 @@ export default function SearchBar({ searchList }: Props) {
|
||||
const fuse = new Fuse(searchList, {
|
||||
keys: ["title", "description"],
|
||||
includeMatches: true,
|
||||
threshold: 0.4,
|
||||
threshold: 0.5,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user