@das-fed/utils 7.0.4-test.1 → 7.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { getConfig as u } from "@das-fed/utils/config";
2
2
  import { getUrlParams as d } from "@das-fed/utils/common-tools";
3
3
  import { getAccessToken as I } from "@das-fed/utils/token-tools";
4
4
  import { getTokenFromQuery as S, getProjectInfoFromQuery as y } from "@das-fed/utils/common-info/getInfoFromUrl";
5
- const N = I, T = () => {
5
+ const N = I, A = () => {
6
6
  var r;
7
7
  let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
8
8
  return {
@@ -60,7 +60,7 @@ const N = I, T = () => {
60
60
  leaf: (e == null ? void 0 : e.leaf) ?? !1,
61
61
  optional: (e == null ? void 0 : e.leaf) ?? !0
62
62
  };
63
- }, f = () => {
63
+ }, v = () => {
64
64
  let e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
65
65
  return {
66
66
  id: (e == null ? void 0 : e.id) ?? 0,
@@ -85,7 +85,7 @@ const N = I, T = () => {
85
85
  autoTimezone: (e == null ? void 0 : e.autoTimezone) ?? !1,
86
86
  currency: (e == null ? void 0 : e.currency) ?? {}
87
87
  };
88
- }, v = () => {
88
+ }, f = () => {
89
89
  const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
90
90
  return {
91
91
  applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
@@ -118,7 +118,6 @@ const N = I, T = () => {
118
118
  currentSubApp: e.currentSubApp ?? {},
119
119
  currentSubAppCode: e.currentSubAppCode ?? "",
120
120
  subAppList: e.subAppList ?? [],
121
- fixedApps: e.fixedApps ?? [],
122
121
  menuCollapses: e.menuCollapses ?? []
123
122
  };
124
123
  }, U = (e, t = !1) => {
@@ -134,7 +133,7 @@ const N = I, T = () => {
134
133
  s[n.code] = n.menus ?? [];
135
134
  }), s;
136
135
  }
137
- }, x = () => {
136
+ }, E = () => {
138
137
  const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
139
138
  return {
140
139
  currentCode: e.currentCode ?? "",
@@ -142,10 +141,10 @@ const N = I, T = () => {
142
141
  tabMap: e.tabMap ?? {},
143
142
  preTab: e.preTab ?? {}
144
143
  };
145
- }, E = () => {
144
+ }, z = () => {
146
145
  const e = u(), t = sessionStorage.getItem("minioAddress");
147
146
  return t || (e.baseURL ? e.baseURL : location.origin);
148
- }, z = () => ({
147
+ }, x = () => ({
149
148
  instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
150
149
  }), F = () => localStorage.getItem("fav-icon") || "./logo.svg";
151
150
  N() || S();
@@ -153,20 +152,20 @@ var i;
153
152
  (i = C()) != null && i.id || y();
154
153
  export {
155
154
  F as getFavIcon,
156
- v as getHomeInfo,
157
- z as getInstanceInfo,
155
+ f as getHomeInfo,
156
+ x as getInstanceInfo,
158
157
  M as getLanguages,
159
158
  U as getMenus,
160
- E as getMinioAddress,
159
+ z as getMinioAddress,
161
160
  j as getPageAuth,
162
161
  D as getPageAuthBtn,
163
162
  k as getPersonalConfig,
164
163
  J as getPersonalInfo,
165
164
  C as getProjectInfo,
166
- f as getProjectMessage,
165
+ v as getProjectMessage,
167
166
  m as getSubApps,
168
- x as getTabInfo,
167
+ E as getTabInfo,
169
168
  O as getTenantInfo,
170
169
  N as getToken,
171
- T as getUserInfo
170
+ A as getUserInfo
172
171
  };
Binary file
@@ -188,8 +188,6 @@ export interface SubAppsInfo {
188
188
  currentSubAppCode: string
189
189
  /** 当前打开的应用 */
190
190
  subAppList: any[]
191
- /** 常用应用 */
192
- fixedApps: any[]
193
191
  /** 当前菜单折叠的应用key集合 */
194
192
  menuCollapses: any[]
195
193
  }