fix(search): remove double base on importing excepts

fixes #2230
pull/2236/head
Divyansh Singh 1 year ago
parent be8352441f
commit 185213c6ba

@ -24,7 +24,7 @@ import {
type Ref
} from 'vue'
import type { ModalTranslations } from '../../../../types/local-search'
import { pathToFile, withBase } from '../../app/utils'
import { pathToFile } from '../../app/utils'
import { useData } from '../composables/data'
import { createTranslate } from '../support/translation'
@ -197,7 +197,7 @@ debouncedWatch(
)
async function fetchExcerpt(id: string) {
const file = pathToFile(withBase(id.slice(0, id.indexOf('#'))))
const file = pathToFile(id.slice(0, id.indexOf('#')))
try {
return { id, mod: await import(/*@vite-ignore*/ file) }
} catch (e) {

Loading…
Cancel
Save