提交
This commit is contained in:
1 parent
31be9bfd95
commit
843e13bce3
722 files changed
+288067
-110680
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user