主题色修改

This commit is contained in:
仲么了
2023-12-29 11:14:04 +08:00
parent dc5f97b6dc
commit 9ea3660392
5 changed files with 327 additions and 87 deletions

View File

@@ -8,7 +8,9 @@
import { computed, ref } from 'vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useConfig } from '@/stores/config'
// const configStore = useConfig()
import { useElementPlusTheme } from "use-element-plus-theme"
const configStore = useConfig()
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
// document.documentElement.style.setProperty('--el-color-primary', configStore.getColorVal('elementUiPrimary'));
</script>