zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<template>
  <router-view/>
</template>
 
<script setup>
import {useSettingStore} from '@/store/modules';
import { handleThemeStyle } from '@/utils/theme';
 
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingStore().theme)
  })
})
</script>