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

31 lines
985 B
Vue
Raw Normal View History

<script lang="ts" setup>
import { useGreyAndColorWeakness } from "@@/composables/useGreyAndColorWeakness"
import { useTheme } from "@@/composables/useTheme"
import zhCn from "element-plus/es/locale/lang/zh-cn" // Element Plus 中文包
const { initTheme } = useTheme()
const { initGreyAndColorWeakness } = useGreyAndColorWeakness()
2024-11-19 20:14:23 +08:00
// 初始化主题
initTheme()
2024-11-19 20:14:23 +08:00
// 初始化灰色模式和色弱模式
initGreyAndColorWeakness()
2024-11-19 20:14:23 +08:00
// 作者小心思
ElNotification({
title: "Hello",
2023-07-06 14:10:14 +08:00
type: "success",
2024-01-19 19:37:28 +08:00
dangerouslyUseHTMLString: true,
2024-11-20 15:40:24 +08:00
message: "<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",
duration: 0,
position: "bottom-right"
})
</script>
<template>
<el-config-provider :locale="zhCn">
<router-view />
</el-config-provider>
</template>