🚧 Work in progress

This commit is contained in:
Freeze455
2021-10-06 18:04:10 +02:00
parent d0c909602b
commit bc7a685e74
2 changed files with 7 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
import axios from 'axios'
import { markdownEndpoint } from '../utils/Navigation'
export default async function useDocumentation (url: markdownEndpoint): Promise<string> {
const { data } = await axios.get(url)
return data
}

View File

@@ -30,11 +30,6 @@ onMounted(() => {
htmlStatut.value = document.documentElement.classList.contains('dark')
})
const route = useRoute()
onMounted(() => $route.path, () => {
console.log('test')
})
function toggle () {
const htmlRoot = document.documentElement as HTMLElement
htmlRoot.classList.contains('dark')