zmdms-utils 0.0.63 → 0.0.64

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.
@@ -14,7 +14,7 @@ declare const EMITTER_TYPE: {
14
14
  treeSearchWhitePath: string;
15
15
  treeSearchSet: string;
16
16
  };
17
- declare const TOKEN_KEY = "Cicoms-Auth";
18
- declare const BASIC_KEY = "cicoms";
17
+ declare const TOKEN_KEY: any;
18
+ declare const BASIC_KEY: any;
19
19
 
20
20
  export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY };
@@ -21,9 +21,9 @@ var EMITTER_TYPE = {
21
21
  };
22
22
  // token key 值
23
23
  // export const TOKEN_KEY = "Zmdms-Auth";
24
- var TOKEN_KEY = "Cicoms-Auth";
24
+ var TOKEN_KEY = window.__TOKEN_KEY__ || "Cicoms-Auth";
25
25
  // 基础前缀
26
26
  // export const BASIC_KEY = "zmdms";
27
- var BASIC_KEY = "cicoms";
27
+ var BASIC_KEY = window.__BASIC_KEY__ || "cicoms";
28
28
 
29
29
  export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, PERSONNEL_CENTER_APPNAME, SALARY_CENTER_APPNAME, TOKEN_KEY };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/constants.ts CHANGED
@@ -26,8 +26,8 @@ export const EMITTER_TYPE = {
26
26
 
27
27
  // token key 值
28
28
  // export const TOKEN_KEY = "Zmdms-Auth";
29
- export const TOKEN_KEY = "Cicoms-Auth";
29
+ export const TOKEN_KEY = (window as any).__TOKEN_KEY__ || "Cicoms-Auth";
30
30
 
31
31
  // 基础前缀
32
32
  // export const BASIC_KEY = "zmdms";
33
- export const BASIC_KEY = "cicoms";
33
+ export const BASIC_KEY = (window as any).__BASIC_KEY__ || "cicoms";