update: Add persistence configuration for sidebar state in settings store
This commit is contained in:
parent
f6555e5726
commit
1fcc3432c1
|
@ -26,6 +26,11 @@ export const useSettingsStore = defineStore('settings', {
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
persist: {
|
||||||
|
key: 'settings',
|
||||||
|
paths: ['sidebarCollapsed']
|
||||||
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
// 切换侧边栏状态
|
// 切换侧边栏状态
|
||||||
toggleSidebar() {
|
toggleSidebar() {
|
||||||
|
|
Loading…
Reference in New Issue