fix: 修改账号关联关系描述。
This commit is contained in:
@@ -47,14 +47,11 @@ const accountType = computed(() => {
|
|||||||
|
|
||||||
// 判断当前选中的是否是登录账号
|
// 判断当前选中的是否是登录账号
|
||||||
if (currentUserId === originalUserId) {
|
if (currentUserId === originalUserId) {
|
||||||
// 如果是登录账号,检查是否有主账号
|
// 登录账号始终显示为主账号
|
||||||
// parentList 包含登录账号本身,如果长度>1说明有其他可切换账号(主账号)
|
|
||||||
const hasParent = parentList.value.length > 1 &&
|
|
||||||
parentList.value.some(item => item.userId !== originalUserId);
|
|
||||||
return hasParent ? "(子账号)" : "(主账号)";
|
|
||||||
} else {
|
|
||||||
// 如果选中的是其他账号,那一定是主账号
|
|
||||||
return "(主账号)";
|
return "(主账号)";
|
||||||
|
} else {
|
||||||
|
// 如果选中的是其他账号,那一定是登录账号的父账号,显示为关联账号
|
||||||
|
return "(关联账号)";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//然后计算出navBarHeight
|
//然后计算出navBarHeight
|
||||||
|
|||||||
Reference in New Issue
Block a user