From 6f381ffd545278e524d3a013208f2b618bdbdca3 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Wed, 19 Jul 2023 18:14:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/NavigationBar/index.vue | 2 ++ src/layouts/components/Settings/SelectLayoutMode.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/components/NavigationBar/index.vue b/src/layouts/components/NavigationBar/index.vue index 48247b1..e5d96cf 100644 --- a/src/layouts/components/NavigationBar/index.vue +++ b/src/layouts/components/NavigationBar/index.vue @@ -95,6 +95,8 @@ const logout = () => { } .sidebar { flex: 1; + // 设置 min-width 是为了让 Sidebar 里的 el-menu 宽度自适应 + min-width: 0px; :deep(.el-menu) { background-color: transparent; } diff --git a/src/layouts/components/Settings/SelectLayoutMode.vue b/src/layouts/components/Settings/SelectLayoutMode.vue index 1ecf104..eccc6ad 100644 --- a/src/layouts/components/Settings/SelectLayoutMode.vue +++ b/src/layouts/components/Settings/SelectLayoutMode.vue @@ -23,7 +23,7 @@ const isLeftTop = computed(() => layoutMode.value === "left-top") - +