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