Skip to content

Commit 2e1e720

Browse files
committed
chore: 适配 element-plus 2.5.2
1 parent 7317e96 commit 2e1e720

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/App.vue

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script lang="ts" setup>
2-
import { h } from "vue"
32
import { useTheme } from "@/hooks/useTheme"
43
import { ElNotification } from "element-plus"
54
// 将 Element Plus 的语言设置为中文
@@ -14,11 +13,9 @@ initTheme()
1413
ElNotification({
1514
title: "Hello",
1615
type: "success",
17-
message: h(
18-
"a",
19-
{ style: "color: teal", target: "_blank", href: "https://github.com/un-pany/v3-admin-vite" },
20-
"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"
21-
),
16+
dangerouslyUseHTMLString: true,
17+
message:
18+
"<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",
2219
duration: 0,
2320
position: "bottom-right"
2421
})

0 commit comments

Comments
 (0)