mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(layout): migrate isSidebarCollapsed persistence from sessionStorage to localStorage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
f09d40f436
commit
f978845dde
1 file changed
+1
-5
@@ -127,11 +127,7 @@ export const useLayoutStore = defineStore(
|
||||
{
|
||||
persist: [
|
||||
{
|
||||
pick: ['isSidebarCollapsed'],
|
||||
storage: sessionStorage,
|
||||
},
|
||||
{
|
||||
pick: ['screenshotMobileAdapt', 'isToolsPanelLocked', 'isToolsPanelMini', 'toolsPanelPosition'],
|
||||
pick: ['isSidebarCollapsed', 'screenshotMobileAdapt', 'isToolsPanelLocked', 'isToolsPanelMini', 'toolsPanelPosition'],
|
||||
storage: localStorage,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user