主题颜色修改
This commit is contained in:
15
src/App.vue
15
src/App.vue
@@ -1,19 +1,16 @@
|
||||
<template>
|
||||
<el-config-provider :locale='zhCn'>
|
||||
<el-config-provider :locale="zhCn">
|
||||
<router-view></router-view>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
import { computed, ref } from 'vue'
|
||||
<script lang="ts" setup>
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||
import { useConfig } from '@/stores/config'
|
||||
import { useElementPlusTheme } from 'use-element-plus-theme'
|
||||
import useSetTheme from '@/utils/setTheme'
|
||||
useSetTheme()
|
||||
|
||||
const configStore = useConfig()
|
||||
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
|
||||
<style lang="scss">
|
||||
/* Your SCSS styles here */
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user