fix(sidebar): 通过 pinia 控制菜单栏收缩

This commit is contained in:
BTMuli
2023-03-07 13:53:44 +08:00
parent cfb321b31d
commit 3c6d8ba5f4
2 changed files with 29 additions and 2 deletions

14
src/store/modules/app.ts Normal file
View File

@@ -0,0 +1,14 @@
import { defineStore } from "pinia";
export const useAppStore = defineStore({
id: "app",
state: () => {
return {
// 侧边栏设置
sidebar: {
expand: true,
},
};
},
persist: true,
});