fix: genIndex error for search (#1933)

This commit is contained in:
WangLiang/王良
2023-01-03 15:46:50 +08:00
committed by sy-records
parent 78aaa377fd
commit 68d873587c
+1 -3
View File
@@ -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 || '';
}
}
});