From e8d0f9ba9d9277d2d4749dda19d40b97db0d5069 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Fri, 16 Jun 2023 18:11:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?App.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1df0ab9..b1b5840 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,15 +2,15 @@ import { h } from "vue" import { useTheme } from "@/hooks/useTheme" import { ElNotification } from "element-plus" +// 将 Element Plus 的语言设置为中文 import zhCn from "element-plus/lib/locale/lang/zh-cn" const { initTheme } = useTheme() /** 初始化主题 */ initTheme() -/** 将 Element Plus 的语言设置为中文 */ -const locale = zhCn +/** 作者小心思 */ ElNotification({ title: "Hello", message: h( @@ -24,7 +24,7 @@ ElNotification({