1234567891011121314151617 |
- <script lang="ts" setup>
- import { useTheme } from "@/hooks/useTheme"
- import { ElNotification } from "element-plus"
- // 将 Element Plus 的语言设置为中文
- import zhCn from "element-plus/es/locale/lang/zh-cn"
- const { initTheme } = useTheme()
- /** 初始化主题 */
- initTheme()
- </script>
- <template>
- <el-config-provider :locale="zhCn">
- <router-view />
- </el-config-provider>
- </template>
|