generated from kevisual/vite-react-template
feat: 更新版本号至0.0.9;优化搜索功能,新增topics字段支持
This commit is contained in:
@@ -32,7 +32,7 @@ export const App = () => {
|
||||
useEffect(() => {
|
||||
refresh({ showTips: false })
|
||||
}, [])
|
||||
|
||||
|
||||
const appList = useMemo(() => {
|
||||
const sortedList = [...list].sort((a, b) => {
|
||||
const aActive = workspaceList.some(ws => ws.slug === a.path)
|
||||
@@ -56,7 +56,7 @@ export const App = () => {
|
||||
}
|
||||
|
||||
const fuse = new Fuse(filteredList, {
|
||||
keys: ['name', 'path', 'description'],
|
||||
keys: ['name', 'path', 'description', 'topics'],
|
||||
threshold: 0.3,
|
||||
includeScore: true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user