21 lines
616 B
Vue
21 lines
616 B
Vue
<template>
|
|
<el-config-provider :locale="zhCn">
|
|
<router-view></router-view>
|
|
</el-config-provider>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed, ref } from 'vue'
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
|
import { useConfig } from '@/stores/config'
|
|
// const configStore = useConfig()
|
|
// document.documentElement.style.setProperty('--el-color-primary', configStore.getColorVal('elementUiPrimary'));
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
// $primaryColor: v-bind('configStore.getColorVal("elementUiPrimary")');
|
|
// :root {
|
|
// --el-color-primary: $primaryColor !important;
|
|
// }
|
|
</style>
|