This commit is contained in:
zlwu committed 2026-07-05 21:31:07 +08:00
1 parent 31be9bfd95
commit 843e13bce3
722 files changed
+288067 -110680

No files matched your search

+9 -1
View File
@@ -450,7 +450,15 @@ export const useSettingStore = defineStore(
key: 'setting',
storage: localStorage,
/** 严格单页:不持久化多标签开关,避免旧配置覆盖默认 false */
omit: ['showWorkTab']
omit: ['showWorkTab'],
afterRestore: (ctx) => {
const width = Number(ctx.store.menuOpenWidth)
if (!Number.isFinite(width) || width < 270) {
ctx.store.setMenuOpenWidth(270)
} else if (width === 290) {
ctx.store.setMenuOpenWidth(270)
}
}
}
}
)