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,
| };
| });
|
|