chore: 适配 element-plus 2.5.2
This commit is contained in:
parent
7317e96e7b
commit
2e1e72099a
@ -1,5 +1,4 @@
|
||||
<script lang="ts" setup>
|
||||
import { h } from "vue"
|
||||
import { useTheme } from "@/hooks/useTheme"
|
||||
import { ElNotification } from "element-plus"
|
||||
// 将 Element Plus 的语言设置为中文
|
||||
@ -14,11 +13,9 @@ initTheme()
|
||||
ElNotification({
|
||||
title: "Hello",
|
||||
type: "success",
|
||||
message: h(
|
||||
"a",
|
||||
{ style: "color: teal", target: "_blank", href: "https://github.com/un-pany/v3-admin-vite" },
|
||||
"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"
|
||||
),
|
||||
dangerouslyUseHTMLString: true,
|
||||
message:
|
||||
"<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",
|
||||
duration: 0,
|
||||
position: "bottom-right"
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user