Files
ojnext/src/App.vue
2023-01-17 10:42:50 +08:00

15 lines
383 B
Vue

<script setup lang="ts">
import { zhCN, dateZhCN, darkTheme } from "naive-ui"
import { isDark } from "./shared/composables/dark"
const theme = computed(() => (isDark.value ? darkTheme : null))
</script>
<template>
<n-config-provider :theme="theme" :locale="zhCN" :date-locale="dateZhCN">
<router-view></router-view>
</n-config-provider>
</template>
<style scoped></style>