Files
admin-govern/src/App.vue

20 lines
485 B
Vue
Raw Normal View History

2023-12-21 16:42:39 +08:00
<template>
2023-12-29 14:46:20 +08:00
<el-config-provider :locale='zhCn'>
2023-12-26 16:17:30 +08:00
<router-view></router-view>
</el-config-provider>
2023-12-21 16:42:39 +08:00
</template>
2023-12-26 16:17:30 +08:00
2023-12-29 14:46:20 +08:00
<script lang='ts' setup>
2023-12-26 16:17:30 +08:00
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 14:46:20 +08:00
import { useElementPlusTheme } from 'use-element-plus-theme'
2023-12-29 11:14:04 +08:00
const configStore = useConfig()
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
2023-12-26 16:17:30 +08:00
</script>
2023-12-28 14:49:48 +08:00
2023-12-29 14:46:20 +08:00
<style lang='scss'>
2023-12-28 14:49:48 +08:00
</style>