2022-04-21 18:20:39 +08:00
|
|
|
<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 中文包
|
2022-04-21 18:20:39 +08:00
|
|
|
|
2025-05-08 21:39:47 +08:00
|
|
|
const { initTheme } = useTheme();
|
|
|
|
const { initGreyAndColorWeakness } = useGreyAndColorWeakness();
|
|
|
|
const { initStarNotification, initStoreNotification } = usePany();
|
2023-03-28 17:48:39 +08:00
|
|
|
|
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()
|
2022-04-21 18:20:39 +08:00
|
|
|
</script>
|
2022-04-22 12:47:04 +08:00
|
|
|
|
|
|
|
<template>
|
2023-08-24 16:27:58 +08:00
|
|
|
<el-config-provider :locale="zhCn">
|
2022-04-22 12:47:04 +08:00
|
|
|
<router-view />
|
2023-08-24 16:27:58 +08:00
|
|
|
</el-config-provider>
|
2022-04-22 12:47:04 +08:00
|
|
|
</template>
|