update 优化代码 统一store用法

This commit is contained in:
疯狂的狮子Li
2025-03-12 12:08:23 +08:00
parent 98728828ad
commit 7feead9afc
36 changed files with 59 additions and 60 deletions
+3 -2
View File
@@ -1,5 +1,8 @@
import zhCN from 'element-plus/es/locale/lang/zh-cn';
import enUS from 'element-plus/es/locale/lang/en';
import { defineStore } from 'pinia';
import { useStorage } from '@vueuse/core';
import { ref, reactive, computed } from 'vue';
export const useAppStore = defineStore('app', () => {
const sidebarStatus = useStorage('sidebarStatus', '1');
@@ -68,5 +71,3 @@ export const useAppStore = defineStore('app', () => {
toggleSideBarHide
};
});
export default useAppStore;