diff --git a/docs/components/search.vue b/docs/components/search.vue index b09802403c4..3277d34a07a 100644 --- a/docs/components/search.vue +++ b/docs/components/search.vue @@ -60,7 +60,7 @@ import { components, directives, reference, misc } from '~/content' const SEARCH = [] const process = (readme, section, page) => { - const baseURL = ['docs', section, page].filter(v => !!v).join('/') + const baseURL = '/' + ['docs', section, page].filter(v => !!v).join('/') const { title, toc } = makeTOC(readme) ;[...toc].forEach(({ label, href }) => { SEARCH.push({