mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
fix(sidebar): 通过 pinia 控制菜单栏收缩
This commit is contained in:
14
src/store/modules/app.ts
Normal file
14
src/store/modules/app.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useAppStore = defineStore({
|
||||
id: "app",
|
||||
state: () => {
|
||||
return {
|
||||
// 侧边栏设置
|
||||
sidebar: {
|
||||
expand: true,
|
||||
},
|
||||
};
|
||||
},
|
||||
persist: true,
|
||||
});
|
||||
Reference in New Issue
Block a user