From ded523992582ec83341279e59bddbd698359de79 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Mon, 14 Oct 2024 16:58:29 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E2=99=BB=EF=B8=8F=20=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E6=A8=A1=E6=9D=BF=E9=85=8D=E7=BD=AE=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=8E=B7=E5=8F=96(=E5=BE=85=E5=AE=8C?= =?UTF-8?q?=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/message.ts | 5 ----- src/views/login/index.vue | 20 ++++++++++++-------- src/views/login/login-form.vue | 3 ++- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/utils/message.ts b/src/utils/message.ts index 5ae3caf..fa55e76 100644 --- a/src/utils/message.ts +++ b/src/utils/message.ts @@ -75,11 +75,6 @@ export const message = (message: string | VNode | (() => VNode), params?: Messag } }; -/** - * 关闭所有 `Message` 消息提示函数 - */ -export const closeAllMessage = (): void => ElMessage.closeAll(); - /** * 仓库消息展示 * @param result diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 708a183..782b51c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -13,6 +13,7 @@ import globalization from '@/assets/svg/globalization.svg?component'; import Check from '@iconify-icons/ep/check'; import LoginForm from '@/views/login/login-form.vue'; +import { userI18nTypeStore } from '@/store/i18n/i18nType'; defineOptions({ name: 'Login', @@ -24,7 +25,8 @@ initStorage(); const { dataTheme, overallStyle, dataThemeChange } = useDataThemeChange(); dataThemeChange(overallStyle.value); const { title, getDropdownItemStyle, getDropdownItemClass } = useNav(); -const { locale, translationCh, translationEn } = useTranslationLang(); +const { locale, translation } = useTranslationLang(); +const i18nTypeStore = userI18nTypeStore();