阶段十:完成前端组件与 Hook 注释基线清零

This commit is contained in:
Christ committed 2026-08-15 04:44:06 +08:00
1 parent c90461226b
commit 6257fad453
43 files changed
+1094 -7356

No files matched your search

+3
View File
@@ -1,5 +1,7 @@
// storageKey 侧边栏折叠状态存储键。
const storageKey = 'ydisks.sidebar.v1';
// readSidebarCollapsed 读取侧边栏折叠状态。
export const readSidebarCollapsed = (): boolean => {
try {
return window.localStorage.getItem(storageKey) === 'collapsed';
@@ -8,6 +10,7 @@ export const readSidebarCollapsed = (): boolean => {
}
};
// writeSidebarCollapsed 写入侧边栏折叠状态。
export const writeSidebarCollapsed = (collapsed: boolean): void => {
try {
window.localStorage.setItem(storageKey, collapsed ? 'collapsed' : 'expanded');