2023-12-21 16:42:39 +08:00
|
|
|
<template>
|
2023-12-26 16:17:30 +08:00
|
|
|
<el-config-provider :locale="zhCn">
|
|
|
|
|
<router-view></router-view>
|
|
|
|
|
</el-config-provider>
|
2023-12-21 16:42:39 +08:00
|
|
|
</template>
|
2023-12-26 16:17:30 +08:00
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed, ref } from 'vue'
|
|
|
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
2023-12-28 14:49:48 +08:00
|
|
|
import { useConfig } from '@/stores/config'
|
2023-12-29 11:14:04 +08:00
|
|
|
import { useElementPlusTheme } from "use-element-plus-theme"
|
|
|
|
|
const configStore = useConfig()
|
|
|
|
|
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
|
2023-12-28 14:49:48 +08:00
|
|
|
// document.documentElement.style.setProperty('--el-color-primary', configStore.getColorVal('elementUiPrimary'));
|
2023-12-26 16:17:30 +08:00
|
|
|
</script>
|
2023-12-28 14:49:48 +08:00
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
// $primaryColor: v-bind('configStore.getColorVal("elementUiPrimary")');
|
|
|
|
|
// :root {
|
|
|
|
|
// --el-color-primary: $primaryColor !important;
|
|
|
|
|
// }
|
|
|
|
|
</style>
|