2022-04-21 18:20:39 +08:00
|
|
|
<script lang="ts" setup>
|
2024-11-27 10:17:30 +08:00
|
|
|
import { useGreyAndColorWeakness } from "@@/composables/useGreyAndColorWeakness"
|
2024-12-03 11:53:09 +08:00
|
|
|
import { usePany } from "@@/composables/usePany"
|
2024-11-27 10:17:30 +08:00
|
|
|
import { useTheme } from "@@/composables/useTheme"
|
2024-11-14 16:29:59 +08:00
|
|
|
import zhCn from "element-plus/es/locale/lang/zh-cn" // Element Plus 中文包
|
2022-04-21 18:20:39 +08:00
|
|
|
|
2023-03-28 17:48:39 +08:00
|
|
|
const { initTheme } = useTheme()
|
2024-11-14 16:29:59 +08:00
|
|
|
const { initGreyAndColorWeakness } = useGreyAndColorWeakness()
|
2024-12-03 11:53:09 +08:00
|
|
|
const { initStarNotification, initStoreNotification } = usePany()
|
2023-03-28 17:48:39 +08:00
|
|
|
|
2024-11-19 20:14:23 +08:00
|
|
|
// 初始化主题
|
2023-03-28 17:48:39 +08:00
|
|
|
initTheme()
|
2024-11-19 20:14:23 +08:00
|
|
|
// 初始化灰色模式和色弱模式
|
2024-11-14 16:29:59 +08:00
|
|
|
initGreyAndColorWeakness()
|
2024-12-03 11:53:09 +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>
|