diff --git a/src/plugins/search/search.js b/src/plugins/search/search.js index 3266b7b..f8d7cd3 100644 --- a/src/plugins/search/search.js +++ b/src/plugins/search/search.js @@ -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 || ''; } } });