web
8 天以前 6e6127068f03a7fe655f1fd504c488f20683039f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<template>
  <router-view />
</template>
 
<script setup>
import { onMounted } from 'vue';
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
 
 
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
  })
})
</script>