fix: detailed view errors

pull/2110/head
Guillaume Chau 3 years ago
parent 702788daf3
commit 01d358acb5

@ -143,8 +143,13 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
}, { debounce: 200, immediate: true })
async function fetchExcerpt (id: string) {
const file = pathToFile(id.slice(0, id.indexOf('#')))
const file = withBase(pathToFile(id.slice(0, id.indexOf('#'))))
try {
return { id, mod: await import(/*@vite-ignore*/ file) }
} catch (e) {
console.error(e)
return { id, mod: {} }
}
}
/* Search input focus */

Loading…
Cancel
Save