Commit d689312c by ningjihai

动态菜单50px

parent f94fed16
...@@ -128,7 +128,8 @@ aside { ...@@ -128,7 +128,8 @@ aside {
&.scroller { &.scroller {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(var(--app-height) - var(--navbar-height) - var(--container-pd)); height: calc(var(--app-height) - var(--navbar-height) - var(--container-pd) - var(--submenu-height, 0px));
.app-container { .app-container {
&__body, &__body,
&__wrap { &__wrap {
......
...@@ -87,7 +87,12 @@ const appStore = useAppStore() ...@@ -87,7 +87,12 @@ const appStore = useAppStore()
const userStore = useUserStore() const userStore = useUserStore()
const settingsStore = useSettingsStore() const settingsStore = useSettingsStore()
const permissionStore = usePermissionStore() const permissionStore = usePermissionStore()
watch(() => submenuItems.value.length, (newVal) => {
document.documentElement.style.setProperty(
'--submenu-height',
newVal > 0 ? '50px' : '0px'
);
}, { immediate: true });
// 转换接口数据为组件需要的格式 // 转换接口数据为组件需要的格式
const processedRouters = computed(() => { const processedRouters = computed(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论