update: Add persistence configuration for sidebar state in settings store

This commit is contained in:
Lexcubia 2025-04-20 20:21:50 +08:00
parent f6555e5726
commit 1fcc3432c1
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ export const useSettingsStore = defineStore('settings', {
}
}),
persist: {
key: 'settings',
paths: ['sidebarCollapsed']
},
actions: {
// 切换侧边栏状态
toggleSidebar() {