Skip to content

Commit 68d8735

Browse files
wangliang181230sy-records
authored andcommitted
fix: genIndex error for search (#1933)
1 parent 78aaa37 commit 68d8735

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/plugins/search/search.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ export function genIndex(path, content = '', router, depth) {
128128
token.text = getTableData(token);
129129
token.text = getListData(token);
130130

131-
index[slug].body = index[slug].body
132-
? index[slug].body + token.text
133-
: token.text;
131+
index[slug].body = token.text || '';
134132
}
135133
}
136134
});

0 commit comments

Comments
 (0)