主题色修改

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>

View File

@@ -50,13 +50,13 @@ onBeforeMount(() => {
})
const init = async () => {
await Promise.all([
getAreaList(),
dictDataCache()
]).then(res => {
dictData.state.area = res[0].data
dictData.state.basic = res[1].data
})
// await Promise.all([
// getAreaList(),
// dictDataCache()
// ]).then(res => {
// dictData.state.area = res[0].data
// dictData.state.basic = res[1].data
// })
/**
* 后台初始化请求,获取站点配置,动态路由等信息
*/