杨磊
2025-05-26 96be59a64cc1d8fcaf1034e787717663c68df4a7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { defineStore } from "pinia";
import { ref } from "vue";
 
export const curOrgInfo = defineStore("storeInfo", () => {
  const OrgInfo = ref({});
  const setOrgInfo = (info: any) => {
    OrgInfo.value = info;
  };
  const departmentInfo = ref({});
  const setDepartmentInfo = (info: any) => {
    departmentInfo.value = info;
  };
  return {
    OrgInfo,
    setOrgInfo,
    departmentInfo,
    setDepartmentInfo,
  };
});