主题色修改
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
// })
|
||||
/**
|
||||
* 后台初始化请求,获取站点配置,动态路由等信息
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user