mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-29 14:40:38 +00:00
19 lines
483 B
Vue
19 lines
483 B
Vue
|
<script setup>
|
||
|
import DefaultTheme from 'vitepress/theme'
|
||
|
import { useRouter } from 'vitepress'
|
||
|
import { onBeforeMount } from 'vue';
|
||
|
|
||
|
const router = useRouter()
|
||
|
onBeforeMount(async () => {
|
||
|
if (window.location.href.includes('/#/')) {
|
||
|
const newUrl = window.location.href.replace(/\/#\//, '/').replace(/\?id=/, '#');
|
||
|
window.history.replaceState({}, '', newUrl);
|
||
|
await router.go(newUrl);
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<DefaultTheme.Layout/>
|
||
|
</template>
|