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();