feat(web): 允许收起左侧菜单以让出内容宽度。

顶栏提供收起按钮,收起后侧栏宽度为 0,不再保留被挤压的图标条。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-05 09:39:47 +08:00
1 parent 8e9536332a
commit 13cf2e216d
9 files changed
+63 -7

No files matched your search

+4
View File
@@ -458,6 +458,10 @@ export const useSettingStore = defineStore(
} else if (width === 290) {
ctx.store.setMenuOpenWidth(270)
}
// 旧本地配置把收起按钮关掉了;产品需要顶栏始终能收起侧栏
if (!ctx.store.showMenuButton) {
ctx.store.setButton()
}
}
}
}