主题切换

This commit is contained in:
sjl
2025-03-19 10:26:41 +08:00
parent c215f51554
commit 962c286fd5
10 changed files with 86 additions and 17 deletions

View File

@@ -31,7 +31,7 @@ export const useGlobalStore = defineStore({
// 折叠菜单
isCollapse: false,
// 菜单手风琴
accordion: true,
accordion: false,
// 面包屑导航
breadcrumb: true,
// 面包屑导航图标
@@ -49,6 +49,7 @@ export const useGlobalStore = defineStore({
// Set GlobalState
setGlobalState(...args: ObjToKeyValArray<GlobalState>) {
this.$patch({ [args[0]]: args[1] });
console.log(DEFAULT_PRIMARY);
}
},
persist: piniaPersistConfig(GLOBAL_STORE_KEY)