feat(projects): 初始化加载效果:应用主题颜色

This commit is contained in:
Soybean
2022-01-04 13:53:07 +08:00
parent 2c196841bd
commit 035fa114c9
14 changed files with 107 additions and 33 deletions

13
src/AppProvider.vue Normal file
View File

@ -0,0 +1,13 @@
<template>
<n-config-provider :theme-overrides="theme.naiveThemeOverrides">
<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>