支持全局主题颜色设置

This commit is contained in:
RuoYi
2022-07-31 17:51:45 +08:00
parent de7e21457d
commit f8e6431684
3 changed files with 63 additions and 0 deletions

View File

@ -1,3 +1,15 @@
<template>
<router-view />
</template>
<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme)
})
})
</script>