主题颜色修改

This commit is contained in:
仲么了
2024-01-30 13:47:03 +08:00
parent 417f6788a3
commit b921e2a7e5
8 changed files with 156 additions and 136 deletions

View File

@@ -1,19 +1,16 @@
<template>
<el-config-provider :locale='zhCn'>
<el-config-provider :locale="zhCn">
<router-view></router-view>
</el-config-provider>
</template>
<script lang='ts' setup>
import { computed, ref } from 'vue'
<script lang="ts" setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useConfig } from '@/stores/config'
import { useElementPlusTheme } from 'use-element-plus-theme'
import useSetTheme from '@/utils/setTheme'
useSetTheme()
const configStore = useConfig()
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
</script>
<style lang='scss'>
<style lang="scss">
/* Your SCSS styles here */
</style>