25 lines
744 B
Vue
Raw Normal View History

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