修复日期:2026-05-27
| 问题 | 原因 |
|---|---|
| 收起后不可见 | Sidebar/index.vue 内层 .sidebar-wrapper 写死 width: 200px,外层 topNav 布局收起为 54px 时被裁切 |
| 无法再次展开 | topNav: true 时顶栏没有汉堡按钮,Cookie 若 sidebarStatus=0 会一直处于收起态 |
| 白底 | 菜单与容器多处硬编码 #fff |
| 文件 | 改动 |
|---|---|
src/layout/components/Sidebar/index.vue |
背景改为 #F0F2F5;宽度 100%;折叠态图标居中;子菜单浅灰底 |
src/layout/components/Navbar.vue |
topNav 模式增加汉堡按钮,可展开/收起侧栏 |
src/layout/index.vue |
topNav 侧栏展开 200px / 收起 54px 与动画 |
src/assets/styles/sidebar.scss |
外层侧栏背景与折叠样式统一 |
npm run dev 后进入首页。#F0F2F5,与白色内容区有区分。