We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0976439 commit aa8ae47Copy full SHA for aa8ae47
src/api/ApiIndex.vue
@@ -4,6 +4,7 @@
4
// can also import types for type consistency
5
import { data as apiIndex, APIGroup } from './api.data'
6
import { ref, computed, onMounted } from 'vue'
7
+import { withBase } from 'vitepress'
8
9
const search = ref()
10
const query = ref('')
@@ -84,7 +85,7 @@ const filtered = computed(() => {
84
85
<h3>{{ item.text }}</h3>
86
<ul>
87
<li v-for="h of item.headers" :key="h.anchor">
- <a :href="item.link + '.html#' + h.anchor">{{ h.text }}</a>
88
+ <a :href="withBase(item.link) + '.html#' + h.anchor">{{ h.text }}</a>
89
</li>
90
</ul>
91
</div>
0 commit comments