Create src/app.vue
Browse files- src/app.vue +22 -0
src/app.vue
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script setup lang="ts">
|
| 2 |
+
import { NConfigProvider } from 'naive-ui'
|
| 3 |
+
import { NaiveProvider } from '@/components/common'
|
| 4 |
+
import { useTheme } from '@/hooks/useTheme'
|
| 5 |
+
import { useLanguage } from '@/hooks/useLanguage'
|
| 6 |
+
|
| 7 |
+
const { theme, themeOverrides } = useTheme()
|
| 8 |
+
const { language } = useLanguage()
|
| 9 |
+
</script>
|
| 10 |
+
|
| 11 |
+
<template>
|
| 12 |
+
<NConfigProvider
|
| 13 |
+
class="h-full"
|
| 14 |
+
:theme="theme"
|
| 15 |
+
:theme-overrides="themeOverrides"
|
| 16 |
+
:locale="language"
|
| 17 |
+
>
|
| 18 |
+
<NaiveProvider>
|
| 19 |
+
<RouterView />
|
| 20 |
+
</NaiveProvider>
|
| 21 |
+
</NConfigProvider>
|
| 22 |
+
</template>
|