App.vue 385 B

123456789101112131415161718192021
  1. <template>
  2. <router-view />
  3. </template>
  4. <script setup>
  5. import useSettingsStore from '@/store/modules/settings'
  6. import { handleThemeStyle } from '@/utils/theme'
  7. onMounted(() => {
  8. nextTick(() => {
  9. // 初始化主题样式
  10. handleThemeStyle(useSettingsStore().theme)
  11. })
  12. })
  13. </script>
  14. <style>
  15. html,body,p,div{
  16. font-family: Microsoft YaHei UI, Microsoft YaHei UI;
  17. }
  18. </style>