From a01f66dcc4118446de926cc7cab923f2dcc3cca2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BE=AE=E5=BE=AE=E4=B8=80=E7=AC=91?= <709648985@qq.com>
Date: Thu, 10 Jul 2025 17:31:00 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=811?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/Navbar.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index ae86369..ebc30d0 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -20,7 +20,7 @@

-
{{ useUserStore().roles[0] }}
+
{{ useUserStore().nickname }}
@@ -61,7 +61,7 @@ const newNotice = ref(0);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const userId = ref(userStore.userId);
-console.log(useUserStore().roles[0], 'userStoreuserStoreuserStore');
+// console.log(useUserStore(), 'userStoreuserStoreuserStore');
const companyName = ref(undefined);
@@ -82,7 +82,7 @@ const dynamicTenantEvent = async (tenantId: string) => {
if (companyName.value != null && companyName.value !== '') {
await dynamicTenant(tenantId);
dynamic.value = true;
- await proxy?.$router.push('/');
+ await router.push('/');
await proxy?.$tab.closeAllPage();
await proxy?.$tab.refreshPage();
}
@@ -91,7 +91,7 @@ const dynamicTenantEvent = async (tenantId: string) => {
const dynamicClearEvent = async () => {
await dynamicClear();
dynamic.value = false;
- await proxy?.$router.push('/');
+ await router.push('/');
await proxy?.$tab.closeAllPage();
await proxy?.$tab.refreshPage();
};