pull/4282/merge
laowudui 11 months ago committed by GitHub
commit 2643035236
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -134,6 +134,9 @@ export async function localSearchPlugin(
if (!section || !(section.text || section.titles)) break if (!section || !(section.text || section.titles)) break
const { anchor, text, titles } = section const { anchor, text, titles } = section
const id = anchor ? [fileId, anchor].join('#') : fileId const id = anchor ? [fileId, anchor].join('#') : fileId
if (index.has(id)) {
index.discard(id)
}
index.add({ index.add({
id, id,
text, text,

Loading…
Cancel
Save