-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathapp.vue
43 lines (36 loc) · 909 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<script setup lang="ts">
import 'md-editor-v3/lib/style.css'
import type { SysConfigDTO } from './types'
const global = useGlobalConfig()
const { data: configData } = await useFetch('/api/config', {
method: 'POST',
})
const sysConfig = configData.value?.data as unknown as SysConfigDTO
const version = configData.value?.version
global.value = { sysConfig, version: version! }
useHead({
// as a string,
// where `%s` is replaced with the title
titleTemplate: `%s - ${global.value.sysConfig.websiteName}`,
meta: [
{ name: 'keywords', content: global.value.sysConfig.websiteKeywords },
{ name: 'description', content: global.value.sysConfig.websiteDescription },
],
})
</script>
<template>
<NuxtLoadingIndicator />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<UModals />
</template>
<style>
html,
body,
#__nuxt {
width: 100%;
height: 100%;
@apply bg-slate-50;
}
</style>