Files
ruoyi-plus-soybean/src/AppProvider.vue
2022-01-05 01:36:16 +08:00

14 lines
348 B
Vue

<template>
<n-config-provider :theme="theme.naiveTheme" :theme-overrides="theme.naiveThemeOverrides" class="h-full">
<slot></slot>
</n-config-provider>
</template>
<script setup lang="ts">
import { NConfigProvider } from 'naive-ui';
import { useThemeStore } from '@/store';
const theme = useThemeStore();
</script>
<style scoped></style>