diff --git a/src/layouts/LeftTopMode.vue b/src/layouts/LeftTopMode.vue index a04adeb4..a07e38bc 100644 --- a/src/layouts/LeftTopMode.vue +++ b/src/layouts/LeftTopMode.vue @@ -73,6 +73,7 @@ $transition-time: 0.35s; } .sidebar-container { + background-color: var(--el-menu-bg-color); transition: width $transition-time; width: var(--v3-sidebar-width) !important; height: 100%; diff --git a/src/layouts/components/Sidebar/index.vue b/src/layouts/components/Sidebar/index.vue index fcca44ff..9ecb27b7 100644 --- a/src/layouts/components/Sidebar/index.vue +++ b/src/layouts/components/Sidebar/index.vue @@ -43,8 +43,6 @@ const sidebarMenuHoverBgColor = computed(() => { const tipLineWidth = computed(() => { return !isTop.value ? "2px" : "0px" }) -/** 当为顶部模式时隐藏垂直滚动条 */ -const hiddenScrollbarVerticalBar = computed(() => isTop.value ? "none" : "block")