HIAWms/web/src/libs/Store/Store.ts
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,27 @@ import { reactive, onMounted, ref, Ref } from 'vue' import { createGlobalState } from '@vueuse/core' declare global { interface Window { __globalState: any // å®ä¹ä½ è¦æ´é²ç» window çåéçç±»å __BaseState__: { workSectionList: Record<string, any> } } } /** * å ¨å±ç¶æ */ export const globalState = reactive<Record<string, any>>({}) /** * å ¨å±hook * @returns */ export const useGlobalState = createGlobalState(() => { const state = {} return state })