Skip to content

Commit

Permalink
fix: genIndex error for search (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 authored and sy-records committed Jun 24, 2023
1 parent 78aaa37 commit 68d8735
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export function genIndex(path, content = '', router, depth) {
token.text = getTableData(token);
token.text = getListData(token);

index[slug].body = index[slug].body
? index[slug].body + token.text
: token.text;
index[slug].body = token.text || '';
}
}
});
Expand Down

0 comments on commit 68d8735

Please sign in to comment.