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