perf: layout显示用户信息优化

This commit is contained in:
xiaoxian521
2022-04-14 09:43:39 +08:00
parent 1a565095e9
commit 56f9dc85e7
7 changed files with 403 additions and 368 deletions

View File

@@ -26,6 +26,10 @@ export function useNav() {
};
});
const avatarsStyle = computed(() => {
return username ? { marginRight: "10px" } : "";
});
const isCollapse = computed(() => {
return !pureApp.getSidebarStatus;
});
@@ -117,6 +121,7 @@ export function useNav() {
isCollapse,
pureApp,
username,
avatarsStyle,
getDropdownItemStyle
};
}