From 00275105944ab8a7c0133fa5233dc628dbd9c926 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 21 Jan 2026 16:47:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=85=B3=E7=B3=BB=E6=8F=8F=E8=BF=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom-navigation-bar/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/custom-navigation-bar/index.vue b/src/components/custom-navigation-bar/index.vue index 6e9a0ab..451459f 100644 --- a/src/components/custom-navigation-bar/index.vue +++ b/src/components/custom-navigation-bar/index.vue @@ -47,14 +47,11 @@ const accountType = computed(() => { // 判断当前选中的是否是登录账号 if (currentUserId === originalUserId) { - // 如果是登录账号,检查是否有主账号 - // parentList 包含登录账号本身,如果长度>1说明有其他可切换账号(主账号) - const hasParent = parentList.value.length > 1 && - parentList.value.some(item => item.userId !== originalUserId); - return hasParent ? "(子账号)" : "(主账号)"; - } else { - // 如果选中的是其他账号,那一定是主账号 + // 登录账号始终显示为主账号 return "(主账号)"; + } else { + // 如果选中的是其他账号,那一定是登录账号的父账号,显示为关联账号 + return "(关联账号)"; } }); //然后计算出navBarHeight