Skip to content

Commit

Permalink
fix(search): remove double base on importing excepts
Browse files Browse the repository at this point in the history
fixes #2230
  • Loading branch information
brc-dd committed Apr 16, 2023
1 parent be83524 commit 185213c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPLocalSearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 185213c

Please sign in to comment.