soybean-admin/src/App.vue
2022-11-22 16:27:45 +08:00

27 lines
589 B
Vue

<template>
<n-config-provider
:theme="theme.naiveTheme"
:theme-overrides="theme.naiveThemeOverrides"
:locale="zhCN"
:date-locale="dateZhCN"
class="h-full"
>
<naive-provider>
<router-view />
</naive-provider>
</n-config-provider>
</template>
<script setup lang="ts">
import { dateZhCN, zhCN } from 'naive-ui';
import { subscribeStore, useThemeStore } from '@/store';
import { useGlobalEvents } from '@/composables';
console.log(import.meta.env);
const theme = useThemeStore();
subscribeStore();
useGlobalEvents();
</script>
<style scoped></style>