Skip to content

Commit 8ab105e

Browse files
authored
Fix index page to support Base URL (#66)
1 parent cfa4561 commit 8ab105e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ sidebar: false
55

66
<script setup>
77
import { onMounted } from 'vue';
8+
import { withBase } from 'vitepress';
9+
810
onMounted(() => {
911
if (typeof window !== 'undefined') {
10-
window.location.href = '/installation/';
12+
window.location.href = withBase('/installation/');
1113
}
1214
});
1315
</script>

0 commit comments

Comments
 (0)