fixbug: 🐛 首页无法获取多语言类型
This commit is contained in:
parent
cae9c78b71
commit
8f8c15a41e
|
@ -14,12 +14,17 @@ import Setting from '@iconify-icons/ri/settings-3-line';
|
||||||
import Check from '@iconify-icons/ep/check';
|
import Check from '@iconify-icons/ep/check';
|
||||||
import { $t } from '@/plugins/i18n';
|
import { $t } from '@/plugins/i18n';
|
||||||
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
import { userI18nTypeStore } from '@/store/i18n/i18nType';
|
||||||
|
import { onMounted } from 'vue';
|
||||||
|
|
||||||
const { layout, device, logout, onPanel, pureApp, username, userAvatar, avatarsStyle, toggleSideBar, getDropdownItemStyle, getDropdownItemClass } = useNav();
|
const { layout, device, logout, onPanel, pureApp, username, userAvatar, avatarsStyle, toggleSideBar, getDropdownItemStyle, getDropdownItemClass } = useNav();
|
||||||
|
|
||||||
const { locale, translation } = useTranslationLang();
|
const { locale, translation } = useTranslationLang();
|
||||||
|
|
||||||
const i18nTypeStore = userI18nTypeStore();
|
const i18nTypeStore = userI18nTypeStore();
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
i18nTypeStore.getI18nTypeList();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue