mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
25 lines
730 B
Vue
25 lines
730 B
Vue
<script setup lang="ts">
|
|
import { darkTheme } from 'naive-ui'
|
|
import { useAppStore } from './store'
|
|
import { naiveI18nOptions } from '@/utils'
|
|
|
|
const appStore = useAppStore()
|
|
|
|
const naiveLocale = computed(() => {
|
|
return naiveI18nOptions[appStore.lang] ? naiveI18nOptions[appStore.lang] : naiveI18nOptions.enUS
|
|
},
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<n-config-provider
|
|
class="wh-full" inline-theme-disabled :theme="appStore.colorMode === 'dark' ? darkTheme : null"
|
|
:locale="naiveLocale.locale" :date-locale="naiveLocale.dateLocale" :theme-overrides="appStore.theme"
|
|
>
|
|
<naive-provider>
|
|
<router-view />
|
|
<Watermark :show-watermark="appStore.showWatermark" />
|
|
</naive-provider>
|
|
</n-config-provider>
|
|
</template>
|