@das-fed/utils 6.4.0-dev.9 → 6.4.0-hot.2
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.
- package/api-services/index.js +1284 -1696
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1080 -1492
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1080 -1492
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1083 -1495
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1080 -1492
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1049 -1461
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1080 -1492
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +152 -432
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1080 -1492
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1460 -1872
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1120 -1532
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1046 -1458
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1080 -1492
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1080 -1492
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1080 -1492
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1086 -1498
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1045 -1457
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1080 -1492
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1047 -1459
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1077 -1489
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1045 -1457
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1080 -1492
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1080 -1492
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1074 -1486
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-tools/platform-tools/index.d.ts +2 -1
- package/common-tools/platform-tools/index.js +16 -11
- package/create-api-service/index.js +1074 -1486
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +2 -1
- package/hooks/popup-manager/use-zindex/index.js +8 -17
- package/package.json +3 -3
|
Binary file
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const isRelativeOrSameDomain: (url: string) => boolean;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 自动拼接上showLayout=false参数
|
|
9
9
|
* @param url
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const setShowLayout: (url: string) => string;
|
|
13
|
+
export declare const setShowWatermark: (url: string) => string;
|
|
13
14
|
/**
|
|
14
15
|
* url携带token
|
|
15
16
|
* @param url
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { getToken as
|
|
2
|
-
const
|
|
3
|
-
if (!
|
|
4
|
-
let
|
|
5
|
-
return
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { getToken as s } from "@das-fed/utils/common-info";
|
|
2
|
+
const o = (e) => !!(!e.startsWith("http") || e.startsWith(location.origin)), n = (e) => {
|
|
3
|
+
if (!e) return "";
|
|
4
|
+
let t = e;
|
|
5
|
+
return o(e) && !e.includes("showLayout=false") && (t = e.indexOf("?") !== -1 ? e + "&showLayout=false" : e + "?showLayout=false"), t;
|
|
6
|
+
}, i = (e) => {
|
|
7
|
+
if (!e) return "";
|
|
8
|
+
let t = "";
|
|
9
|
+
return o(e) && !e.includes("showWatermark=false") ? t = e.indexOf("?") !== -1 ? e + "&showWatermark=false" : e + "?showWatermark=false" : t = e, t;
|
|
10
|
+
}, r = (e) => {
|
|
11
|
+
const t = s();
|
|
12
|
+
return e.includes("?") ? `${e}&token=${t}` : `${e}?token=${t}`;
|
|
9
13
|
};
|
|
10
14
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
o as isRelativeOrSameDomain,
|
|
16
|
+
n as setShowLayout,
|
|
17
|
+
i as setShowWatermark,
|
|
18
|
+
r as withToken
|
|
14
19
|
};
|