You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/ux/src/App.vue

34 lines
545 B

<template lang="pug">
router-view
</template>
<script setup>
import { nextTick, onMounted } from 'vue'
import { useSiteStore } from 'src/stores/site'
/* global siteConfig */
// STORES
const siteStore = useSiteStore()
// INIT SITE STORE
if (typeof siteConfig !== 'undefined') {
siteStore.$patch({
id: siteConfig.id,
title: siteConfig.title
})
} else {
siteStore.loadSite(window.location.hostname)
}
// MOUNTED
onMounted(async () => {
nextTick(() => {
document.querySelector('.init-loading').remove()
})
})
</script>