perf: 样式调整

This commit is contained in:
rd
2025-08-18 17:38:14 +08:00
parent c0dfd6030f
commit 3ec419976c
3 changed files with 9 additions and 9 deletions

View File

@ -22,17 +22,11 @@ const router = useRouter();
const route = useRoute();
useResponsive(true);
const navbarHeight = `52px`;
// const renderMenu = computed(() => appStore.menu && !appStore.topMenu);
// const hideMenu = computed(() => appStore.hideMenu);
const showSider = computed(() => {
// 框架模版自带判断逻辑
return appStore.menu && !appStore.topMenu && !appStore.hideMenu && !route.meta?.hideSidebar;
return !route.meta?.hideSidebar;
});
const menuWidth = computed(() => {
return sidebarStore.menuCollapse ? appStore.menuWidthFold : appStore.menuWidth;
});
const collapsed = computed(() => {
return sidebarStore.menuCollapse;
});
@ -63,7 +57,7 @@ const checkHasInviteCode = () => {
<Layout.Sider
v-if="showSider"
v-model="collapsed"
:width="menuWidth"
:width="sidebarStore.sidebarWidth"
collapsible
trigger
@collapse="setCollapsed"