From 6ab4743b7ba4ab955ae1fbfc644fa5e2379df5cd Mon Sep 17 00:00:00 2001 From: suguangxu <274928232@qq.com> Date: Thu, 22 May 2025 19:42:09 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=A1=B5=E9=9D=A2=E5=A4=B4=E9=83=A8=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=A0=8F=E5=88=87=E6=8D=A2=E7=A7=9F=E6=88=B7=EF=BC=9A?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=97=AE=E9=A2=98=E4=BF=AE=E6=AD=A3=E3=80=82=202.?= =?UTF-8?q?=E5=BE=85=E5=8A=9E=E9=A1=B5=E9=9D=A2=E5=88=87=E6=8D=A2=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=EF=BC=9A=E5=88=87=E6=8D=A2=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E4=BF=9D=E7=95=99=E5=BE=85=E5=8A=9E=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Application/src/UserTenantChange.vue | 3 ++- .../workflow/task/components/processTasks/ToDoTasksV2.vue | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Application/src/UserTenantChange.vue b/src/components/Application/src/UserTenantChange.vue index 057c45f..d61a481 100644 --- a/src/components/Application/src/UserTenantChange.vue +++ b/src/components/Application/src/UserTenantChange.vue @@ -75,7 +75,8 @@ } async function toggleLocale(lang: string) { appStore.setPageLoadingAction(true); - let res = await changeTenant(lang); + let res = await changeTenant(lang); + permissionStore.setDynamicAddedRoute(false); await userStore.afterLoginAction(true); closeAll(); await setupRouterGuard(router); diff --git a/src/views/workflow/task/components/processTasks/ToDoTasksV2.vue b/src/views/workflow/task/components/processTasks/ToDoTasksV2.vue index f54ab21..baf259c 100644 --- a/src/views/workflow/task/components/processTasks/ToDoTasksV2.vue +++ b/src/views/workflow/task/components/processTasks/ToDoTasksV2.vue @@ -51,7 +51,7 @@ const appStore = useAppStore(); const userStore = useUserStore(); const { userInfo } = storeToRefs(userStore); - const { closeAll } = useTabs(router); + const { closeOther } = useTabs(router); const permissionStore = usePermissionStore(); const { getShowTopMenu } = useMenuSetting(); const { getIsMobile } = useAppInject(); @@ -209,8 +209,9 @@ async function toggleLocale(tenantCode: string) { appStore.setPageLoadingAction(true); await changeTenant(tenantCode); - await userStore.afterLoginAction(true); - closeAll(); + permissionStore.setDynamicAddedRoute(false); + await userStore.afterLoginAction(false); + closeOther(); await setupRouterGuard(router); await permissionStore.changeSubsystem(getShowTopMenu.value, getIsMobile.value); if(permissionStore.getSubSysList.length>0){