cion
This commit is contained in:
15
src/App.vue
15
src/App.vue
@@ -1,22 +1,19 @@
|
||||
<template>
|
||||
<el-config-provider :locale="zhCn">
|
||||
<el-config-provider :locale='zhCn'>
|
||||
<router-view></router-view>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
<script lang='ts' setup>
|
||||
import { computed, ref } from 'vue'
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||
import { useConfig } from '@/stores/config'
|
||||
import { useElementPlusTheme } from "use-element-plus-theme"
|
||||
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>
|
||||
|
||||
<style lang="scss">
|
||||
// $primaryColor: v-bind('configStore.getColorVal("elementUiPrimary")');
|
||||
// :root {
|
||||
// --el-color-primary: $primaryColor !important;
|
||||
// }
|
||||
<style lang='scss'>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user