From 24f1e8b4b1a54191973eca060bc40c4a1a6d8ea6 Mon Sep 17 00:00:00 2001 From: QianRj <923207736@qq.com> Date: 星期二, 19 十一月 2024 14:40:36 +0800 Subject: [PATCH] update 优化 直接从@/lang/*.ts后缀的i18n文件中读取各国语言包信息 --- src/layout/components/Navbar.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 49018ce..617c5da 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -9,6 +9,7 @@ <el-select v-if="userId === 1 && tenantEnabled" v-model="companyName" + class="min-w-244px" clearable filterable reserve-keyword @@ -92,11 +93,11 @@ import useAppStore from '@/store/modules/app'; import useUserStore from '@/store/modules/user'; import useSettingsStore from '@/store/modules/settings'; +import useNoticeStore from '@/store/modules/notice'; import { getTenantList } from '@/api/login'; import { dynamicClear, dynamicTenant } from '@/api/system/tenant'; import { TenantVO } from '@/api/types'; import notice from './notice/index.vue'; -import useNoticeStore from '@/store/modules/notice'; const appStore = useAppStore(); const userStore = useUserStore(); @@ -127,6 +128,7 @@ dynamic.value = true; proxy?.$tab.closeAllPage(); proxy?.$router.push('/'); + proxy?.$tab.refreshPage(); } }; @@ -135,11 +137,12 @@ dynamic.value = false; proxy?.$tab.closeAllPage(); proxy?.$router.push('/'); + proxy?.$tab.refreshPage(); }; /** 绉熸埛鍒楄〃 */ const initTenantList = async () => { - const { data } = await getTenantList(); + const { data } = await getTenantList(true); tenantEnabled.value = data.tenantEnabled === undefined ? true : data.tenantEnabled; if (tenantEnabled.value) { tenantList.value = data.voList; -- Gitblit v1.9.3