Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 03:49:19 +08:00
v3-admin-vite/src/App.vue

25 lines
729 B
Vue
Raw Normal View History

<script lang="ts" setup>
import { useGreyAndColorWeakness } from "@@/composables/useGreyAndColorWeakness"
2024-12-03 11:53:09 +08:00
import { usePany } from "@@/composables/usePany"
import { useTheme } from "@@/composables/useTheme"
import zhCn from "element-plus/es/locale/lang/zh-cn" // Element Plus 中文包
const { initTheme } = useTheme()
const { initGreyAndColorWeakness } = useGreyAndColorWeakness()
2024-12-03 11:53:09 +08:00
const { initStarNotification, initStoreNotification } = usePany()
2024-11-19 20:14:23 +08:00
// 初始化主题
initTheme()
2024-11-19 20:14:23 +08:00
// 初始化灰色模式和色弱模式
initGreyAndColorWeakness()
2024-12-03 11:53:09 +08:00
// 初始化通知
initStarNotification()
initStoreNotification()
</script>
<template>
<el-config-provider :locale="zhCn">
<router-view />
</el-config-provider>
</template>