闫增涛
4 天以前 6227519a1bd9007aedae11b77b0b3b1851837c38
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,
  };
});