fix: 修复边栏无法打开问题,deepMerge函数有问题未修复
parent
887296c19a
commit
477a658645
|
@ -108,7 +108,7 @@ export function useMenuSetting() {
|
|||
|
||||
// Set menu configuration
|
||||
function setMenuSetting(menuSetting: Partial<MenuSetting>): void {
|
||||
appStore.setProjectConfig({ menuSetting })
|
||||
appStore.setMenuSetting(menuSetting)
|
||||
}
|
||||
|
||||
function toggleCollapsed() {
|
||||
|
|
|
@ -85,6 +85,11 @@ export const useAppStore = defineStore('app', {
|
|||
Persistent.setLocal(PROJ_CFG_KEY, this.projectConfig)
|
||||
},
|
||||
|
||||
setMenuSetting(setting: Partial<MenuSetting>): void {
|
||||
this.projectConfig.menuSetting = deepMerge(this.projectConfig.menuSetting, setting)
|
||||
Persistent.setLocal(PROJ_CFG_KEY, this.projectConfig)
|
||||
},
|
||||
|
||||
async resetAllState() {
|
||||
resetRouter()
|
||||
Persistent.clearAll()
|
||||
|
|
Loading…
Reference in New Issue