fix: genIndex error for search (#1933)

This commit is contained in:
WangLiang/王良 2023-01-03 15:46:50 +08:00 committed by GitHub
parent 5eea904bd2
commit a8f9fc1d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 || '';
}
}
});